The equation in the question expresses an exchange where the cost depends on the number of guests.
To find the cost, it is sufficient to know the total number of guests attending. Therefore, if we write
where we see the letter
in the equation, we will find the total cost for
guests.