How do you use pythagorean theorem to solve the right triangle if the legs have lengths 4 and 9?