A school is organizing a weekend trip to a nature preserve. For each student, there is a $60 charge, which covers food and lodging. There is also a $40 charge per student for the bus. The school must also pay a $30 cleaning fee for the bus. If the total cost of the weekend is $4030, how many students will be going on the trip?

A. 31
B. 40
C. 41
D. 66