You know this version of the Pythagorean theorem, the one with the + sign. c² = a² + b² But there are two other equivalent versions of it, and they have minus signs: a² = c² - b² and also b² = c² - a² So when you are finding c you use a plus + and if you're finding a or b, you use a minus - . Edwin