Two classrooms have a total of 45 people in them. The first class is a math class with 5 more students that the science class. How many are in each class?