From the diagram adjacent side 3 the missing legth is adjecent to the angle measuring
and hypotenuse is x.
The trigonometric function relating adjacent side of a triangle and then adjacent is cosine function.
\
(Substitute
)

Apply cross product property
then ad = bc.

The value of x is 6.