In a class there are 40 students. 16 passed in Chemistry, 20 passed in Physics, 25 passed in Math. 15 students passed in both Math and Physics.15 students passed in both Math and Chemistry and 10 students passed in both Physics and Chemistry. Find the maximum number of students that passed in all the subjects.