Comparative advantage and the gains from trade
Each producer should specialize in the good it gives up least to make, and trading at a price between the two opportunity costs lets both consume beyond their own frontier, even when one is better at everything.