The total number of people varies from 270 to 300.
Only seven 40-seat cars can be rented to meet the number of people in the above range.
So the total number of people is 40*7+ 10=290.
Let's verify it like this.
50 seats, that's six 50*6- 10=290 people.
Encountered a problem