Using the principle of inclusion-exclusion, 36 students take either Mathematics or Computer Science. This is calculated by adding the number of students in each subject and subtracting those who are taking both subjects. Hence, the total is 36 students.
;
Using the principle of inclusion-exclusion, 36 students take either Mathematics or Computer Science in a class of 50 students. This is calculated by adding the number of students in each subject and subtracting those who are counted twice. The formula used ensures an accurate count without double counting. ;