according to the theory of comparative advantage, countries gain from trade because world output can rise when each country specializes in what it does relatively best. trade makes firms behave more competitively, reducing their market power. output per worker in each firm increases. every country has an absolute advantage in producing something.