When the terms of trade are between the opportunity costs for two countries, then both countries benefit if they

impose trade barriers.
specialize in production but do not trade.
consume inside their production possibilities curves.
specialize in production and trade.

specialize in production and trade.