In a class of 40 students, 12 speak both English and German. 22 speak German. If the students of the class that speak at least one of the two subjects, then how many students speak only English and not German?