In a school, there are two classes: Class A and Class B. The number of students in Class A is 25, and the number of students in Class B is 30. Each student in Class A can contribute $10 for a field trip, and each student in Class B can contribute $15 for the same trip.
Calculate the total contribution from each class.