Answer:
Swimming pool
Step-by-step explanation:
Let's say that we invite x people. The cost of the bowling alley will be $15 for the room, and we add $5 dollars for each person. Therefore, we can represent the cost of the bowling alley as
5 * x + 15
Similarly, the cost of the swimming pool is
4 * x + 12
To find the maximum of the function, one thing we can do is set the expressions of the cost equal to 40. This will give us the amount of people we can invite for exactly 40 dollars. Because cost increases with amount of people, this will give us the maximum number of people we can invite with $40.
We thus have
5 * x+ 15 = 40
subtract 15 from both sides to isolate the x and its coefficient
25 = 5 * x
divide both sides by 5 to isolate x
25/5 = x = 5
We can therefore invite 5 people to the bowling alley
4 * x+ 12 = 40
subtract both sides by 12 to isolate the x and its coefficient
28 = 4 * x
divide both sides by 4 to isolate x
x = 7
Therefore, we can invite 7 people to the swimming pool. As 7 > 5, we can invite more people to the swimming pool.
A quicker way to solve this could be by looking at the cost of each location. Because the bowling alley costs more both per person and for the room, and there is no way to decrease the cost except by decreasing the amount of people, there is no way that the bowling alley could get as many people as the swimming pool with the same amount of money