A dormitory has 40 students: 12 sophomores, 8 juniors, and 20 seniors. Which of the following is equal to the number of ways to form a committee of five students from the same class?

a) 300
b) 420
c) 280
d) 210