One leg of a right triangle is 2 mm longer than the shorter leg and the hypotenuse...

Check the final answer first, then review the worked steps.

Answer

8

Work

x^2 + (x+2)^2 = (x+4)^2 \\ x^2 + x^2 + 4x + 4 = x^2 + 8x + 16 \\ x^2 - 4x - 12 = 0 \\ (x-6)(x+2) = 0 \\ x=6, \text{ longer leg } = 6+2=8

Step-by-step solution

Let the shorter leg be $x$. The longer leg is $x+2$ and the hypotenuse is $x+4$. By the Pythagorean theorem, $x^2 + (x+2)^2 = (x+4)^2$. Solving $x^2 + x^2 + 4x + 4 = x^2 + 8x + 16$ gives $x^2 - 4x - 12 = 0$, so $(x-6)(x+2)=0$. Thus $x=6$. The longer leg is $6+2=8$.