The hypotenuse of a right angled triangle is 25 cm. The other two sides are such that one is 5 cm longer than the other. Their lengths (in cm) are