Maths WorkshopMaths problems with full solutions
Exercise 885Combinatorics › Counting principlesL1Added 3 Nov 2026

Counting unions

#inclusion-exclusion#union of sets#counting

Statement

In a class of 3030 students, 1818 like math, 1515 like physics, and 88 like both. How many like at least one of the two subjects?

Hint

∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A\cup B|=|A|+|B|-|A\cap B|.

Show solutionHide solution

Solution

Formula. ∣M∪P∣=18+15−8=25|M\cup P|=18+15-8=25.

Conclusion. 2525 students like at least one subject.

Corollary. 55 students like neither.