there are 40 students in chemistry class and 60 students in physics .find the number of students which are either in physics or chemistry class in the following cases :
1. two classes meet at the same hour
2. two classes meet at the different hour and 20 students are enrolled in both subjects