What was the pythagorean theorem used for?

The Pythagorean theorem is used to find the length of the hypotenuse of a right triangle. It states that the length of the hypotenuse is equal to the square root of the sum of the squares of the other two sides.