1. Mario and Lydia were partners on a class project. The ratio of the number of hours that Mario worked on the project to the number of hours Lydia worked on the project was 7 to 8. Together, they worked 30 hours. How many hours did each student work on the project?