Constraint System Math Example 2
Follow the full solution, then compare it with the other examples linked below.
Example 2
hardA shop sells notebooks for \3 and pens for \1. You have \$12 and want at least 2 notebooks. How many pens can you buy?
Solution
- 1 Let = notebooks, = pens. Constraints: , , .
- 2 With : , so .
- 3 With : , so .
- 4 With : , so .
- 5 Maximum pens: 6 (buying exactly 2 notebooks).
Answer
Up to 6 pens (with 2 notebooks).
Real-world problems often involve multiple constraints that must be satisfied simultaneously. Listing cases for the integer variable helps find all feasible solutions.
About Constraint System
A collection of equations and inequalities that must ALL be satisfied simultaneously by the same set of variable values.
Learn more about Constraint System →