Finding the shorter side using Pythagoras' theorem