Example 2 Theorem of Pythagoras