In a school, there are two classes taking the same math test. Class A has 10 students, and their average score on the test was 85. Class B has 15 students, and their average score on the test was 90. What is the overall average score for all students in both classes combined?