Using Pythagoras' Theorem