Answer:
I did this quickly, so please check the logic.
I find x = 15
Explanation:
See attached image. Note that I've defined 3 triangles and their Pythagorean equations. I also define a third line, RQ, as z. Rearrange the equations and substitute in a way that allows elimination of all variables except x.