Margaret Chen, Utkarsh Dandanayak, and Arnstein Vestre provided outstanding research assistance. An early draft of this paper was circulated under the title “Linear Supply and Demand in Heterogeneous Markets,” dated November 15, 2024. The views expressed herein are those of the authors and do not necessarily reflect the views of the National Bureau of Economic Research.