Sam — buyer of water Joe — seller of water 0.250.50 0.751.00 1.25 Granola bars per bottle 1618 2022 2426 1214 1618 2022 Bottles of water Sam holds Bottles of water Joe holds Sam’s personal worth of one more bottle Joe’s personal worth of one more bottle Price: 0.75 bars per bottle ↕ Price 0.75: Sam buys 4 (gain 0.60 bars) · Joe sells 4 (gain 0.50 bars) Offers match — every gainful trade happens

Drag the dashed price line up or down (or focus it and use the arrow keys). Watch when the two sides’ offers match.