Total students (= 30)
12 students have an average score of 80.
Remaining students (= 30 - 12 = 18) have an average score of 70.
Total marks of first group
12×80=960
Total marks of second group
18×70=1260
Total marks of the class
960+1260=2220
Average score of the class
302220=74
So, the average score of the class is:
=74