Worked example
A notebook costs ₹12 and a pen ₹8. Find the nonnegative integer purchases costing ₹48.
Worked solution
- Method and reasoningTranslate total cost into a linear equation. Counts must be nonnegative integers.
- Divide 12n + 8p = 48 by 4.
- In 3n + 2p = 12, n must be even and at most 4.
- The pairs (n,p) are (0,6), (2,3), (4,0).