In a survey of 25 students, it was found that 15 had taken mathematics, 12 had taken physics and 11 had taken chemistry, 5 had taken mathematics and chemistry, 9 had taken mathematics and physics, 4 had taken physics and chemistry and 3 had taken all the three subjects.
Find the number of students that had taken only one of the subjects.