Students in two classrooms were given a mathematics test. The first classroom had 25 students and their average score was 86%. The second classroom had 15 students and their average score was 94%. If the teacher combined the test scores of students in both classes, what is the average score for both classes?