One leg of a right triangle is 2cm longer than the other leg. The hypotenuse is 10cm long. Determine the length of the shorter leg.​