These two participants have paid the market maker, in total, 0.20 in spread. Here, the spread is the fee the market maker charges for facilitating liquidity. At this point, the net sum between the three participants is still 0. However, we also need to factor in the fees charged by the exchange, any taxes that may be charged on the transaction (for example the SEC fee in equities), clearing fees, and funding costs.
On the whole, the transaction between the three participants was negative sum. However, the market maker is running a business by reflecting those costs, and the risk premium, in the spread. Even though this transaction is negative sum, it, presumably, still provides economic value to the farmer and Starbucks.