They were simply told, "These are the 'A-students,' these are the 'D-students.'" And that's how they went about teaching them and treating them.
Simplesmente falaram para eles: Esses são os alunos A e estes os alunos D. E foi assim que os professores começaram a ensinar e tratar os alunos.