Let
be the length of the shorter leg.
The other leg is 1m longer, so its length is

The hypothenuse is 9m longer, so its length is

The pythagorean theorem states that the sum of the squares of the legs is the square of the hypothenuse, so we have

Expanding the squares gives

Move all to the left hand side:

This equation has solutions
and

We can't accept the first solution, because it would lead to the side lengths

And we can't have negative side lengths.
The other solution is fine, because it leads to the side lengths

So, the side lengths are 20 (shorter leg), 21 (longer leg), 29 (hypothenuse)