Maths WorkshopMaths problems with full solutions
Exercise 243Combinatorics › Inclusion-exclusionHigh schoolAdded 3 Nov 2026

The two-set inclusion-exclusion formula

#inclusion-exclusion#two sets#union

Statement

In a class of 3030 students, 1818 study Spanish, 1515 study German, and 88 study both. How many study at least one of the two languages?

Hint

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

Show solutionHide solution

Solution

Formula. ∣S∪G∣=18+15−8=25|S\cup G|=18+15-8=25.

Conclusion. 2525 students study at least one language.

Corollary. 30−25=530-25=5 study neither.