Example

Solving a Calorie and Budget Problem Using a System of Inequalities

Problem: Omar needs at least 800 calories before team practice. He wants only hamburgers and cookies, and he cannot spend more than $5. Each hamburger has 240 calories and costs $1.40; each cookie has 160 calories and costs $0.50.

ⓐ Set up the system. Let hh = the number of hamburgers and cc = the number of cookies. Translating the two constraints:

  • "At least 800 calories" → 240h+160c800240h + 160c \geq 800
  • "No more than $5" → 1.40h+0.50c51.40h + 0.50c \leq 5

The system is: {240h+160c8001.40h+0.50c5\left\{\begin{array}{l} 240h + 160c \geq 800 \\ 1.40h + 0.50c \leq 5 \end{array}\right.

ⓑ Graph the system. Graph 240h+160c=800240h + 160c = 800 as a solid boundary line. Testing (0,0)(0, 0): 08000 \geq 800 is false, so shade the side away from the origin. Graph 1.40h+0.50c=51.40h + 0.50c = 5 as a solid boundary line. Testing (0,0)(0, 0): 050 \leq 5 is true, so shade the side containing the origin. The solution is the doubly-shaded overlap region.

The point (3,1)(3, 1) lies in the solution region, so eating 3 hamburgers and 1 cookie meets both the calorie and budget requirements.

The point (2,4)(2, 4) also lies in the solution region, so eating 2 hamburgers and 4 cookies is another valid option.

Possible solutions can also be verified algebraically by substituting the values into each inequality to confirm both are true.

Image 0

0

1

Updated 2026-04-21

Contributors are:

Who are from:

Tags

OpenStax

Elementary Algebra @ OpenStax

Ch.5 Systems of Linear Equations - Elementary Algebra @ OpenStax

Algebra

Math

Prealgebra

Related
Learn After