A garden has the shape of a right triangle with one leg 4 meters longer than the other. the hypotenuse is 4 meters less than twice the length of the shorter leg. what is the length of the shorter​ leg?