In a right triangle with hypotenuse c:
WHY IT IS TRUE
On the left, the four triangles fill the corners of the square with side a + b. The two acute angles of a right triangle add up to 90°, so the space left in the middle is a square, built on the hypotenuse:
On the right, the same triangles, put together in pairs as rectangles, leave the squares built on the legs:
The same square, less the same four triangles: what is left has the same area.
The trap: c is not any side, it is the hypotenuse, opposite the right angle. To find a leg, subtract: b² = c² − a².
WITH NUMBERS
c = 13 is the hypotenuse and a = 5 a leg: the unknown b is the other leg, so subtract, and b = 12.