The role of intelligence and education in the division of labor