The class president is organizing a class trip to a nearby amusement park for 314 students. The regular price is $35 per ticket.
However, some students can receive a discount due to volunteer community service work that they took part in on Saturdays. The students who are eligible for the discount will pay $21.50. The total ticket cost for the class trip will be $10,072. How many students are eligible for the discount?