Two sets: the formula n(A ∪ B) = n(A) + n(B) − n(A ∩ B)

About this lesson: Two sets: the formula n(A ∪ B) = n(A) + n(B) − n(A ∩ B)

In short

If you add n(A) and n(B), the elements in both sets are counted twice. Subtract them once to get the number in the union: n(A ∪ B) = n(A) + n(B) − n(A ∩ B).

What you'll explore

Counting without counting twice: Subtract the overlap
If you add n(A) and n(B), the elements in both sets are counted twice.
A class survey: Tea, coffee, both
In a class of 40 students, 25 like tea, 20 like coffee and 8 like both. How many like at least one drink, and how many like neither?
Finding the overlap: The formula backwards
Often the number in both sets is the unknown. Of 50 people, 30 read newspaper A, 28 read newspaper B and everyone reads at least one.
With a letter: Put x in the middle
When the overlap is unknown, write x there and fill the other regions in terms of x. 35 students: 20 play cricket, 18 play football, 5 play neither.
Check yourself: Use the formula
Add, then subtract the overlap.

Also in this lesson

  • The formula for two sets in detail
  • Common mistakes

Key words

n(A)
The number of elements in the set A.
Finite set
A set whose elements can be counted to an end.
At least one
In A or in B or in both: the union.
Neither
Outside both sets: (A ∪ B)′.
Only
In one set and not in the other, such as A ∩ B′.
Overlap
The region common to both sets.

Sources

  • NIE Sri Lanka, Mathematics syllabus and Teachers' Guide, Grade 10 (competency level 30.2).

An interactive lesson with a live experiment: move the sliders, press the buttons and answer quick questions. 5 short steps and a 30-question quiz. Part of the Family plan. Written and checked by Shalo Lab. Last updated 20 November 2026.

← Venn diagrams with two sets: the regions

All lessons in Unit 18 · Sets · O/L Maths · Grade 10

O/L Maths past papers 2016–2025: analysis and 10 model papers with answers

මේ පිටුව සිංහලෙන් කියවන්න