Three friends each contribute the same amount of money and together buy some jars of cream. When they split the jars:
To settle up fairly, the first friend pays to the third friend. What is the price of one jar?
Express all three shares with one variable. Let the third friend take jars. Then the second takes and the first takes . Anchoring on the smallest share keeps every quantity non-negative and makes the differences easy to read.
Find the fair share. Because the three paid equally, each is entitled to a third of the jars:
The unknown cancels out here, which is why the problem is solvable without knowing the total.
Measure each person's surplus or shortfall against that share.
So the first friend has jars too many, the second is short and the third is short. The surpluses and shortfalls balance: .
Match the payment to the right shortfall. The goes to the third friend, so it compensates that friend's shortfall alone — jars, not the first friend's whole -jar surplus. Letting be the price of a jar:
Check that the whole settlement closes. At per jar the first friend's extra jars are worth . Paying to the third friend and to the second accounts for exactly . Everyone ends up with value equal to a one-third share, so is consistent.
Need to solve a different problem like this? Open the solver →