From the diagram adjacent side 15 and hypotenuse 36.
The trigonometric function relating adjacent side of a triangle and then hypotenuse is cosine function.
(Substitute )
Apply inverse each side.
The value of x is .