Hon do you do the Pythagorean theorem
Pythagoras theorem: a^2 + b^2= c^2
Where c is the hypotenuse.
You can also have: c^2-a^2=b^2