Split a 40-won lunch budget between gimbap and tteokbokki, then find the best combo.
The 💰 money you can spend is fixed. What you spend on the two foods cannot pass the budget. The best combo is where the last won buys the same happiness on either food. The second formula below states that condition.
For example, you have 4,000 won: a 🍞 bread costs 1,000 and a 🥛 milk costs 2,000. One of each fits the budget exactly. If the last 100 won on bread felt better, buy less milk and one more bread.
Going all-in on one food unbalances the happiness of the last won. Balance comes when the last won buys the same happiness either way.
That point splits the budget exactly in half: 20 worth of food 1 (5 items) and 20 worth of food 2 (2.5 items). That is why the two readout lines show the same number.
Surprisingly, food 2 stays at 2.5 items. The split-in-half rule holds regardless of prices.
Food 1: 20 worth at 2 each is 10 items — you buy more of the cheaper food, but the other food's share is untouched. That is the signature of this preference.