Pythagoras' theorem: find a non-hypotenuse