The shorter leg of a right triangle is 7 inches shorter than the longer leg. The hypotenuse is 17 inches longer than the longer leg. Find the side lengths of the triangle.