When we have a right triangle like the one we have in the image, we can use the relationships between the legs and the hypotenuse.
The relationships are given by,
We need to find x, however, to find x we must find y first,
We solve for y,
Now that we have the value of y, we can find x,