The answer is not 37, even though the sum of the numbers above is 37. For example, while 12 students failed Algebra, 2 of those students also failed Biology, 6 also failed Chemistry, and 1 of those failed all three subjects. In fact, that 1 student who failed all three subjects is counted a total of 7 times in the total 37. To clarify things, let us think of the students who failed Algebra as the elements of the set and similarly for sets and The one student who failed all three subjects is the lone element of the set Thus, in Venn diagrams:
Now letβs fill in the other intersections. We know contains 2 elements, but 1 element has already been counted. So we should put a 1 in the region where and intersect (but does not). Similarly, we calculate the cardinality of and
Next, we determine the numbers that should go in the remaining regions, including outside of all three circles. This last number is the number of students who did not fail any subject:
We found 5 goes in the β onlyβ region because the entire circle for needed to have a total of 12, and 7 were already accounted for. Similarly, we calculate the β onlyβ region to contain only 1 student and the β onlyβ region to contain no students.
Thus the number of students who failed at least one class is 15 (the sum of the numbers in each of the eight disjoint regions). The number of students who passed all three classes is 26: the total number of students, 41, less the 15 who failed at least one class.
Note that we can also answer other questions. For example, how many students failed just Chemistry? None. How many passed Algebra but failed both Biology and Chemistry? This corresponds to the region inside both and but outside of containing 2 students.