A school is planning a field trip for its students. Each ticket for the trip costs $10. The principal decides to allocate funds for the trip based on the number of students attending. If x represents the number of students going on the trip, the total cost can be expressed as the equation $$C = 10x$$, where $$C$$ is the total cost.
The school has budgeted $500 for the trip. The principal wants to find out what the maximum number of students is that can attend the trip without exceeding the budget. What is the maximum number of students?