Number & Sets · SS 1
Number of elements in a union
Count the members of either set without counting the overlap twice.
- n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
What the letters mean
- n(A)
- the number of elements in set A
- A ∪ B
- A union B: elements in A or B or both
- A ∩ B
- A intersection B: elements in both
Worked example
In a class, 25 students take Physics, 18 take Chemistry and 10 take both. How many take at least one of them?
Step 1: Put the numbers in the formula
n(P ∪ C) = 25 + 18 − 10
Step 2: Work it out
= 33
Final answer: 33 students
Draw a Venn diagram: fill in the overlap first, then the rest of each circle.
When to use it
Use this formula for two-set problems where some people or things belong to both groups, such as students who play football and basketball. Watch for words like 'both', 'either', 'at least one' and 'neither'. If the sets have nothing in common, the overlap is 0 and you simply add. For three sets, a labelled Venn diagram is safer than this short formula.
Why it works
When you add n(A) and n(B), every element in the overlap is counted twice: once with A and once with B. For example, a student who takes both Physics and Chemistry is in both counts. Subtracting n(A ∩ B) once removes the extra count, so each element is counted exactly once. What is left is the number in A or B or both.
Try it yourself
A market has 40 traders. 24 sell rice, 19 sell beans, and every trader sells at least one of the two. How many sell both?
Try it first, then show the solution
- Every trader sells at least one, so n(R ∪ B) = 40
- Put the numbers in the formula: 40 = 24 + 19 − n(R ∩ B)
- Simplify: 40 = 43 − n(R ∩ B), so n(R ∩ B) = 43 − 40 = 3
- Check with a Venn diagram: rice only = 21, beans only = 16, both = 3, and 21 + 16 + 3 = 40 ✓
Answer: 3 traders sell both
See it
Play with this picture from the Venn Diagrams lesson.
n(J)15 + 10 = 25
n(F)8 + 10 = 18
n(J ∩ F)10
n(J ∪ F)25 + 18 − 10 = 33
n(J′)8 + 7 = 15
n(ξ)40
Common mistakes
- Forgetting people outside both sets. If 50 people were asked and n(A ∪ B) = 42, then 8 are in neither set. The total is n(A ∪ B) plus the number in neither.
- Using n(A) as 'A only'. In the Physics and Chemistry example, Physics only is 25 − 10 = 15, not 25. Subtract the overlap to get each 'only' part.
In BECE and WASSCE
Two-set Venn problems are common in WASSCE. You may need to find the overlap, the number in 'neither', or an unknown x placed in the regions of a diagram. In Paper 2, draw and label the Venn diagram, then show the equation you solve, because marks are given for both.
Questions students ask
What does n(A ∩ B) mean?
It means the number of elements that are in both A and B. For example, if A = {2, 4, 6, 8} and B = {4, 8, 12}, then A ∩ B = {4, 8}, so n(A ∩ B) = 2.
How do I find the number in neither set?
Find n(A ∪ B) with the formula, then subtract it from the total. If 60 students were asked, 35 like maths, 30 like English and 15 like both, then n(M ∪ E) = 35 + 30 − 15 = 50, so 60 − 50 = 10 like neither.