The amount of time that three secretaries worked on a special project are in the ratio of 1 to 2 to 5. If they worked a combined total of 112 hours, how many hours did the secretary, who worked the longest spend on the project?