pls help im not sure how to get this

Answer:
use Pythagoras theorem
Step-by-step explanation:
x=7 or X=-24 but for second value of X is not correct since you can not have a negative length for opposite side
therefore take X=7 as the answer