- Box of pralines: $7
- Bag of chips: $3
- Chocolate bar: $0.50
They must all add up to $100, and one should buy at least one of each.
I will estimate the minimum number of items purchased using a "greedy" algorithm. First, the minimum purchases, one of each: $7 + $3 + $0.50 = $10.50, giving $89.50 left over. One can have at most 12 boxes of pralines, costing $84 and giving $5.50 left over. One can have at most one bag of chips, giving $2.50 left over. One can have 5 chocolate bars, costing $2.50, with $0.00 left over.
Thus, one should purchase 13 boxes of pralines, 2 bags of chips, and 6 chocolate bars.
Relaxing that minimum-number constraint means that the solution is no longer unique, since
- 1 box of pralines = 2 bags of chips + 2 chocolate bars
- 3 boxes of pralines = 7 bags of chips
- 1 box of pralines = 14 chocolate bars
- 1 bag of chips = 6 chocolate bars