How do you do the Pythagorean Theorem? Also how do you do it with one leg and hypotenuse? Also how do you do it with 2 legs and no hypotenuse?