Consider two heterogenous populations of agents who, when matched, jointly produce an output, `Y`. For example, teachers and classrooms of students together produce achievement, parents raise children, whose life outcomes vary in adulthood, assembly plant managers and workers produce a certain...