Example 3 Theorem of Pythagoras