A company is going to have a dinner party in a restaurant for its top employees. The restaurant is going to charge them $280 for the use of their function room, plus $40 per dinner. The company has a budget of no more than $1500. What is the greatest number of people they can invite to this dinner?