Which of the following correctly describes the Pythagorean theorem

1.The sum of the lengths of the legs of a right triangle is equal to the length of the hypotenuse.

2.The sum of the squares of the lengths of the legs of a right triangle is equal to the square of the length of the hypotenuse.

3.The product of the lengths of the legs of a right triangle is equal to the length of the hypotenuse.


4.The product of the squares of the lengths of the legs of a right triangle is equal to the square of the length of the hypotenuse.