A stained glass window is shaped like a right triangle. The hypotenuse is 15 feet. One leg is three more than the other. Find the lengths of the two other legs.