By definition:
cos(angle) = adjacent/hypotenuse
In triangle ABD:
cos(∠A) = 10/x
In triangle ABC:
cos(∠A) = x/40
Then,
3.6m questions
4.6m answers