You can
put this solution on YOUR website!Let x = the shorter leg.
Then x+2 = the longer leg.
Therefore, by the Pythagorean Theorem:

Now we just solve this. This is a quadratic equation (because of the

terms so we will simplify:

... get one side equal to zero ...

... factor ...

... use the Zero Product Property to find what values make the product zero ...

or

Solving these is simple:

or

Since x represents the shorter leg we must reject x = -8 because we don't have negative lengths for legs. So the only acceptable length for the shorter leg is 6. And this makes the longer leg 8 (because it is 2 meters longer).
In summary, the sides of the triangle are 6, 8 and 10 meters long.