Modern production frequently involves teamwork among employees specialized in different tasks. I develop a model of teams in which firms assign tasks to workers who are heterogeneous in their overall quality and whose efficiency varies across different tasks. In addition to productivity gains,...