One leg of a right triangle is 8 millimeters shorter than the longer leg and the hypotenuse is 8 millimeters longer than the longer leg. How do you find the lengths of the triangle?