One leg of a right triangle is 3 millimeters longer than the shorter leg and the hypotenuse is 6 millimeters longer than the shorter leg. find the lengths of the sides of the triangle.