How do you use the pythagorean theorem?