The Pythagorean theorem relates the length of the sides of a right triangle.
We can apply it to calculate the length of a third side, knowing the length of the other two.
Then, to apply the Pythagorean theorem we need a right triangle with 2 known sides.