Two receipts, one shared price list, and a number that appears on neither of them: the price of a single muffin. Last lesson we turned that pair of receipts into a system of equations and then, somewhat cruelly, stopped there.
Welcome to the fifth and final lesson of Modeling and Solving Everyday Systems. Today we finish the job. We pick that bakery system back up, run elimination on it, and carry the numbers all the way back into plain English — what one muffin costs and what one cup of coffee costs. We will also add one last habit to the routine: a short reasonableness check that catches answers which are algebraically perfect but impossible in real life.
Why Elimination Is the Natural Fit
As you may recall from Lesson 1, the three-step scan asks whether a variable is already isolated, whether one can be isolated without creating fractions, and whether any coefficients line up neatly. Combined-purchase systems answer no, usually no, and yes — which is precisely the fingerprint of elimination.
That pattern is no accident. Receipts arrive in standard form, Ax+By=C, with both variables carrying genuine coefficients and nothing sitting alone on either side. Trying to isolate m in 3m+2c=16.50 would hand us m=316.50−2c​ and a lesson's worth of fractions, while lining up the c terms and subtracting keeps every number tidy.
Eliminating with the Bakery Receipts
Here is the system from last lesson, where m is the price of one muffin in dollars and c is the price of one cup of coffee in dollars:
{3m+2c=16.505m+4c=29.50​
The c coefficients are 2 and 4, so multiplying every term of the first equation by 2 makes them match: 6m+4c=33.00. Both equations now carry +4c, so subtracting one from the other removes the coffee entirely:
(6m+4c)−(5m+4c)=33.00−29.50m=3.50
Now back-substitute into an original equation, since that is the one that faithfully describes the receipt. From 3(3.50)+2c=16.50 we get 10.50+2c=16.50, then 2c=6.00, and finally c=3.00. If the decimals feel uncomfortable, multiplying both original equations by 100 before you start is completely legitimate — the same move we used for clearing fractions in the elimination course.
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal
Verifying in Both Original Equations
Turning Numbers into Sentences
Checking That the Answer Is Reasonable
When the Unknowns Are Quantities
Common Pitfalls
Conclusion and Next Steps
You now have the complete pipeline for combined-purchase situations. Choose elimination because standard form invites it, scale one equation until a pair of coefficients matches, eliminate and solve, then back-substitute into an original equation and verify in both. Finish by stating each value as a labeled sentence and running the reasonableness check on sign, size, form, and — when the unknowns are counts — whole numbers. The quantity-unknown version travels the identical route, just with stricter expectations about what a sensible answer looks like.
Elimination replaces our equations with scaled versions of themselves, so the only trustworthy check is the pair we began with. Substituting m=3.50 and c=3.00 into each original equation should reproduce each receipt total exactly.
First purchase: 3(3.50)+2(3.00)=10.50+6.00=16.50 ✓
Second purchase: 5(3.50)+4(3.00)=17.50+12.00=29.50 ✓
Both totals land on the nose, which confirms that (m,c)=(3.50, 3.00) satisfies the whole system, not just the line we happened to substitute into. When a pair works in one equation but misses the other, the scaling step is almost always where the arithmetic slipped — check it first.
A verified pair of numbers is still not an answer to the question that was asked. The question was about prices, so the final line of our work should name the item, the amount, and the unit:
A muffin costs $3.50, and a cup of coffee costs $3.00.
Notice how much that one sentence protects us. Writing only "m=3.50, c=3.00" leaves the reader to remember which letter belonged to which item, and it is uncomfortably easy to announce that coffee costs $3.50 when the algebra said the opposite. Rereading your variable definitions right before writing the sentence takes five seconds and removes the risk completely.
Muffins are $10.50 of the $16.50 receipt, leaving $6.00 for two coffees ✓
When one of these checks fails, the problem is usually the model rather than the world. A negative price, a coffee costing $47, or a count of 6.5 tickets is a signal to reread the original sentences and confirm that each coefficient really sits beside the right variable.
The mirror-image situation from last lesson deserves the same treatment. A theater charges $12 per adult ticket and $8 per child ticket; a group buys 20 tickets in total and pays $196. With a = the number of adult tickets and k = the number of child tickets, the model was:
{a+k=2012a+8k=196​
Scaling the first equation by 8 gives 8a+8k=160, and subtracting that from the second leaves 4a=36, so a=9. Back-substituting into a+k=20 gives k=11, and the money equation checks out: 12(9)+8(11)=108+88=196. In words: the group bought 9 adult tickets and 11 child tickets.
Here the reasonableness bar is higher than it was for prices. Counts must be nonnegative whole numbers and must not exceed the stated total of 20 — a result like a=9.5 would prompt a review of the data, the model, and the arithmetic, since half a ticket does not exist as a real purchase. (A fractional solution does not automatically mean the arithmetic went wrong; the stated data may simply have no feasible whole-number solution.) All three tests pass here, so the answer stands.
Most lost points in applied elimination come from the last few inches of the problem rather than the algebra in the middle.
Scaling only part of an equation. Every term gets multiplied, including the constant on the right.
Losing a sign while subtracting. Subtraction flips the sign of each term in the second equation, not only the first.
Back-substituting into a scaled equation. Allowed, but the original is safer, because it is the one that describes the actual receipt.
Attaching the wrong letter to the wrong item. Reread the variable definitions before writing the final sentence.
Skipping the reasonableness check. Negative prices and fractional ticket counts are signals to recheck the data, the model, and the calculations — a fractional count may mean arithmetic slipped, the model is set up incorrectly, or the stated data have no feasible whole-number solution.