The hypotenuse of a right triangle is 6 feet long. One leg is 1 foot shorter than the other. Find the lengths of the legs. Round to the nearest tenth of a foot