To find x, first, we have to calculate the second leg of the bigger triangle using Pythagorean's Theorem.
Then, we find the acute angle in the triangle on the right.
Now, using this angle, we find the other part that sums 18 with x.
Then, we subtract to find x
Hence, x = 7.