How does the formation of cross-country teams affect the organization of work and the structure of wages? To study this question, we propose a theory of the assignment of heterogeneous agents into hierarchical teams, where less skilled agents specialize in production and more skilled agents specialize in problem solving. We first analyze the properties of the competitive equilibrium of the mode...