Total number of students = 331
total students that travelled in car = 7
total students that travelled in bus = 331 - 7
= 324
total number of buses = 6
Now,
Total number of students in each bus = total students travelling in bus / total bus
= 324 / 6
= 54 students
So, there were 54 students in each bus.