Every arc has a capacity and a price per unit. Push flow along the cheapest path left, again and again, and the flow stays the cheapest of its size.
This interactive visualization needs JavaScript.