X=9
Take the hypotenuse and the other side you have, so in this case 15 and 12 and square both of them. After you square them subtract them. (Subtract the value of 12 squared from 15 squared)
So, 15*15-12*12=81
Now find the square root of 81, which is 9.
Hope this helps