In a class of 40 students, 25 offer Mathematics and 18 offer Physics. If 7 students offer both subjects, find how many offer neither.
4
Context: Let be the number of students offering neither. Using set theory rules:\text{Total} = (\text{Math only}) + (\text{Physics only}) + (\text{Both}) + (\text{Neither})$$$$40 = (25 - 7) + (18 - 7) + 7 + x \implies 40 = 18 + 11 + 7 + x$$$$40 = 36 + x \implies x = 4