The student council is selling tickets to a school dance. One teacher decides to pay $10 for his class, and the students in the
class have to pay $2 each. Another teacher pays $25 for her class, and the students only have to pay $1 each. Assuming both classes have the same number of students, how many students are in each class and how much did each class pay in total (including the teachers' money?)