The cost to rent a hall for the prom is $400 and $30 per person for the meal. This can be modelled by the equation C=400+30x, where x is the number of students attending. The prom committee has $10,000. What is the greatest number of students that can attend with this budget?