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