The perimeter of a right angled triangle is 56cm. If the hypotenuse is 25cm, calculate the length of each of the other two sides.​