We compare two cooperation mechanisms for consumer/producers of a public good: the Nash Bargaining Solution (NBS) and the Exchange-Matching-Lindahl (EML) solution, where each agent specifies her demand for and supply of the public good according to her personal exchange rate. Both mechanisms are Pareto-efficient. EML is equivalent to matching. In our specific model with linear or quadratic benefits and quadratic costs, EML and NBS are equivalent when there are two agents. With more than two agents, the high-benefit/low-cost agents are better off under EML. We also analyze outsourcing, where agent i can pay agent j to produce the amount that agent i promised to contribute. In our specific model, payments from high-cost to low-cost agents (and from high-benefit to low-benefit agents) are (usually) lower in EML than in NBS.