I GIVE BRAINLIEST FOR EXPLANATION AND CORRECT ANSWER EXTRA POINTS 2

Answer:
See below, please!
Step-by-step explanation:
You can use the cos ratio to find the value of x. Since we know cosine is adjacent/hypotenuse, we can do cos(60)=x/40. Then, we multiply each side by 40 to find the value of x. So, x=20.