According to the theory of comparative advantages, countries are to specialize based on their