An explanation of teachers' salaries