Let x = length of the shorter leg
Then 2x+3 = length of the hypotenuse
By the Pythagorean Theorem, x2 + 122 = (2x+3)2
x2 + 144 = 4x2 + 12x + 9
3x2 + 12x - 135 = 0
x2 + 4x - 45 = 0
(x+9)(x-5) = 0
x = -9 or 5
Since x can't be negative, x = 5 meters