When applied to international economics, the theory of comparative advantage proposes that total worldwide output will be greatest when: