There are gains from trade when producers specialize. Michigan, with its sandy soil, specializes in blueberries while Kansas specializes in soybeans. Specialization allows the two states to produce more soybeans and blueberries as a whole than if both states attempted to produce everything. Trade ensures that people in both states have enough soybeans and blueberries to eat.