(i) Section 9A has 12+18+10=40 students:
4012×10+18×7+10×4=40120+126+40=40286=7.15
Section 9B has 15+5+10=30 students:
3015×10+5×7+10×4=30150+35+40=30225=7.5
(ii) Both sections together have 70 students with 286+225=511 grade points:
70511=7.3
This is not the simple average 27.15+7.5=7.325, because 9A has more students (40) than 9B (30).