How long a ladder do you need to reach a window, or how big is a television whose screen is “55 inches across the diagonal”? Questions like these are answered by one of the most useful rules in mathematics — Pythagoras' theorem — which ties together the three sides of any right-angled triangle.
A right-angled triangle has one square corner — a right angle. The two sides meeting at that corner are the legs; the longest side, opposite the right angle, is the hypotenuse.
For example, a triangle with legs
The same equation finds a leg when you already know the hypotenuse and the other leg. Move the known leg across, then undo the square with a square root:
Solving for the first leg
and the same move for the other leg
For example, a triangle with hypotenuse