A catering company charges $300 plus $40 per guest for a wedding. Sarah and Eric do not want to spend more than $5,000 on catering. Write and solve an inequality in terms of the number of guests, g, that can be invited.

The inequality that represents the situation is:

300 + 40g ≤ 5000

To solve for g, we subtract 300 from both sides:

40g ≤ 4700

Next, we divide by 40 on both sides:

g ≤ 4700/40

Simplifying:

g ≤ 117.5

Therefore, the number of guests, g, that can be invited is less than or equal to 117.5. However, since the number of guests must be a whole number, the maximum number of guests that can be invited is 117.