Question 114·Hard·Linear Inequalities in One or Two Variables
A nutritionist is assembling custom snack boxes using packets of almonds and pretzels. An almond packet costs $0.70 and supplies 6 grams of protein, while a pretzel packet costs $0.45 and supplies 2 grams of protein. She has at most $280 to spend, and the boxes must contain at least 2,400 grams of protein in total.
What is the minimum number of almond packets the nutritionist must purchase to satisfy both requirements?
(Express the answer as an integer)
For “minimum or maximum number of items” problems with a budget and a requirement (like protein or time), immediately define variables and write one inequality for cost and another for the requirement. Solve one inequality for one variable (for example, express pretzels in terms of almonds) and substitute into the other to reduce the system to a single-variable inequality; this quickly gives a lower or upper bound on the quantity you care about. Always also use simple reasoning (like setting the other variable to 0) to get the opposite bound, then combine these bounds to pin down the exact value, checking that it satisfies both original constraints.
Hints
Translate the situation into algebra
Assign variables to represent the number of almond packets and the number of pretzel packets. Then write one inequality for the total cost and another for the total protein.
Use the budget to limit almonds
From the cost inequality, think about what happens if there are no pretzels. What inequality do you get for the maximum possible number of almond packets?
Relate pretzels to almonds using protein
Solve the protein inequality for the number of pretzel packets in terms of the number of almond packets. Then, use that expression in the cost inequality to get an inequality involving only the number of almond packets.
Combine your inequalities to find a bound on a
You should end up with an upper bound and a lower bound for the number of almond packets. Combine them to pin down the exact value of the minimum number of almond packets.
Desmos Guide
Enter the inequalities
Let represent the number of almond packets and the number of pretzel packets. In Desmos, enter the inequalities:
0.7x + 0.45y <= 2806x + 2y >= 2400x >= 0y >= 0This will shade the region of points that satisfy all the constraints.
Locate the feasible region
Zoom and pan until you clearly see the shaded region where all four inequalities overlap. In this problem, the overlap collapses to a single point on the graph, where the budget and protein constraints are both tight (turned into equalities).
Read the minimum number of almond packets
Click on that single overlapping point to see its coordinates . The -coordinate of this point is the number of almond packets in the only combination that satisfies both the protein requirement and the budget, and thus is the minimum number of almond packets needed.
Step-by-step Explanation
Define variables and write the inequalities
Let
- = number of almond packets
- = number of pretzel packets
Total cost is at most $280:
Total protein is at least grams:
We also know and since you cannot buy a negative number of packets.
Use the budget to find an upper bound on almond packets
From the cost inequality
notice that because . That means
Dividing both sides by gives
So there is a maximum possible number of almond packets; it cannot exceed this value.
Use the protein requirement to relate pretzels to almonds
From the protein inequality
solve for :
For any fixed , the smallest number of pretzel packets that still meets the protein requirement is (as long as this is nonnegative). Using more pretzels would only increase the total cost.
So, to see whether a given can fit in the budget at all, plug this minimum into the cost inequality:
Simplify:
This gives a lower bound on .
Find the exact value of a and identify the minimum
From the previous steps we have two bounds on :
- From the budget alone: .
- From combining budget and protein: .
Now solve the inequality from Step 3:
From Step 2, . Together these force
With , the protein requirement is met by almonds alone: grams, and the cost is exactly dollars, leaving no money for pretzels (so ).
Therefore, the minimum number of almond packets the nutritionist must purchase is 400.