The overall arrangement is A66 = 6! = 720 species
The first section is physical education class's arrangement method.
A55=5! = 120
The second part is the arrangement of geography class.
A55=5! = 120
The sixth section is the arrangement of math class as follows
A55=5! = 120
Among them, the arrangement of the second section of geography and the sixth section of mathematics has already included some arrangements of the first section, that is, repeated calculation. In this case, the first section is physical education, the second section is geography, and the sixth section is mathematics: 2*A33= 12.
So the final arrangement method is 720-120-120-120+12 = 372.