Find the length of the shorter leg of a right triangle if the longer leg is 3 feet more than the shorter leg and the hypotenuse is 3 feet less
than twice the shorter leg.