how can I use trigonometry to solve for x

Answer:
m∠X ≈ 41.3
Step-by-step explanation:
This is what I did!
Find the length of the side opposite X; solve the smaller right triangle using the Pythagorean theorem:
[tex]8^{2} +S^{2} = 22^{2} \\[/tex]
S ≈ 20.49
Use the SINE ratio (opposite leg/hypotenuse)
[tex]sinX = \frac{20.49}{31} \\X = 0.660\\[/tex]
Use the INVERSE SINE ratio to find the measure
[tex]sin^{-1} (0.660)[/tex]
m∠X ≈ 41.3