Efficiency and equity in learning communities and schools