Theory
Pythagoras' theorem only works in right-angled triangles. Before writing a formula, find the right angle first.
The hypotenuse is the longest side and is always directly opposite the right angle. It is the side the right-angle marker does not touch.
In a right-angled triangle, a² + b² = c², where c is the hypotenuse and a and b are the two shorter sides.
If you are finding the hypotenuse, add the two shorter side squares: c² = a² + b².
If you are finding a shorter side, subtract: missing side² = hypotenuse² - other shorter side².
After adding or subtracting the squares, square root to return to a length. A squared length such as 97 is not the final answer.
Most calculator answers are decimals. Keep the full calculator display until the last line, then round once to the accuracy requested.
If a question asks for exact form or surd form, do not use a decimal. Simplify the square root instead, for example √20 = 2√5.
The converse works backwards: if the two shorter side squares add to the longest side square, the triangle is right-angled.
Higher questions may hide the right triangle inside an isosceles triangle, a coordinate grid, a rectangle, or a cuboid.