Given:
The price per student for the admission, m=$5.
Extra amount spent by a student, c=$ 9.
Total amount spent, T=$34.
Let x be the number of students. Then, the expression for the total amount is,

Substitute values and solve for x.

Therefore, the number of students is 5.
Option (b) is correct.