Our teacher teach two different subjects but they need at least one period gap between.
If your math teacher teaches also physical education, he will be very grateful, if you create him the timetable with a gap between two lessons for different subjects. You can use this advanced relation.