The average weight of students in a class was 60.5 kg. When 8 students, whose average weight was 65 kg, joined the class, then the average weight of all the students increased by 0.9 kg. The total number of students now in the class is:
A35
B40
C32
D27