Finance, Comparative Advantage, and Resource Allocation