The hypotenuse of a right triangle is 1 cm longer than the longer leg. the shorter leg is 17 cm shorter than the longer leg. find the length of the longer leg of the triangle.