A high school class is planning a hayride. It costs $30 per hour plus a fee of $50.
The class can spend no more than $280. How many hours can they ride?