The hypotenuse of a right triangle is 10 cm long. One of the triangles legs is three times the length of the other leg. Find the lengths of the three sides of the triangle.