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.

Responses
A 300 - 40g ≥ 5000; g ≥ 117300 - 40g ≥ 5000; g ≥ 117
B 300 - 40g ≤ 5000; g ≤ 118300 - 40g ≤ 5000; g ≤ 118
C 300 + 40g ≤ 5000; g ≤ 117300 + 40g ≤ 5000; g ≤ 117
D 300 + 40g ≤ 5000; g ≤ 118

Let's break down the information given:

- The catering company charges $300 as a base fee.
- In addition to the base fee, they charge $40 per guest.
- Sarah and Eric do not want to spend more than $5,000 on catering.

Let's represent the number of guests as g.

Based on the given information, the total cost of catering would be $300 + $40g.
We want this total cost to be less than or equal to $5,000.

So, the inequality can be written as:

300 + 40g ≤ 5000

Therefore, the correct answer is option D: 300 + 40g ≤ 5000; g ≤ 118.