The correct answer will be B. 42, 504.
This is a trick from University and High School Statistics.
You must think you have 24 students, and must CHOOSE 5.
On a calculator you do 24C5 (or whatever your function is for combinations) and that is how you get the answer.