In a class of 30 plumbers, the average (arithmetic mean) score of the male plumbers on the final exam was 87. If the average score of 18 female plumbers in the class was 93, what was the average of the whole class?