The interaction teacher – pupil, and the optimalization of the educational process