in EVERY right-angled triangle the square on the hypotenuse = the sum of the squares on the other 2 sides. The hypotenuse is the longest side ( opposite the right angle).
So if the length of the hypotenuse = c units and the lengths of the 2 legs are a and b units The theorem says
c^2 = a^2 + b^2.