- Practice
- About 18 min
- 5 practice questions
Number of elements and word problems on sets
Use n(A) for the number of elements, apply n(A ∪ B) = n(A) + n(B) − n(A ∩ B), and solve two-set word problems with a Venn diagram, including 'only', 'both' and 'neither' questions.
If something looks wrong, please tell us.
By the end of this lesson you can
- Write n(A) for the number of elements of a finite set A.
- Use n(A ∪ B) = n(A) + n(B) − n(A ∩ B) in any of its arrangements.
- Solve word problems by filling the regions of a two-set Venn diagram.
Surveys give totals such as 'how many like tea' and 'how many like coffee', and we often want to know how many like both, only one, or neither. Sets and Venn diagrams turn such questions into a simple calculation.
The notation n(A)
For a finite set A, n(A) means the number of elements of A. If A = {10, 20, 30, 40} then n(A) = 4. For the empty set, n(∅) = 0.
Why we subtract the overlap
Take A = {2, 4, 6, 8, 10, 12} and B = {3, 6, 9, 12}. Then n(A) = 6 and n(B) = 4, so n(A) + n(B) = 10. But A ∪ B = {2, 3, 4, 6, 8, 9, 10, 12} has only 8 elements. The difference comes from A ∩ B = {6, 12}: these 2 elements were counted once in A and again in B. Subtracting them once fixes the count: 6 + 4 − 2 = 8.
n(A ∪ B) = n(A) + n(B) − n(A ∩ B), which can also be written n(A) + n(B) = n(A ∪ B) + n(A ∩ B).
The four regions of a two-set Venn diagram
Splitting U into four parts
-
Only A
- n(A) − n(A ∩ B)
-
Both A and B
- n(A ∩ B)
-
Only B
- n(B) − n(A ∩ B)
-
Neither A nor B
- n(U) − n(A ∪ B)
Worked example 1: find the overlap
If n(A) = 18, n(B) = 25 and n(A ∪ B) = 35, find n(A ∩ B). Working: n(A ∩ B) = n(A) + n(B) − n(A ∪ B) = 18 + 25 − 35 = 8.
Worked example 2: a survey with 'only'
In a group of 60 children, every child likes at least one of mango or banana. 42 like mango and 31 like banana. How many like both, and how many like only mango? (The numbers are made up for practice.) Working: let M and B be the two sets. Everyone likes at least one, so n(M ∪ B) = 60. Then n(M ∩ B) = 42 + 31 − 60 = 13 like both. Only mango = 42 − 13 = 29. Only banana = 31 − 13 = 18. Check: 29 + 13 + 18 = 60.
Worked example 3: a survey with 'neither'
A housing society has 150 families (made-up figures). 90 read a Marathi newspaper, 70 read an English newspaper and 35 read both. How many read neither? Working: n(M ∪ E) = 90 + 70 − 35 = 125 families read at least one. Neither = 150 − 125 = 25 families.
Steps for any two-set word problem
- Name the sets Let A and B be the two groups; U is everyone.
- Write what is given n(U), n(A), n(B), and any 'both' or 'neither' figure.
- Fill the overlap first Find n(A ∩ B) from the rule if it is missing.
- Fill only A and only B Subtract the overlap from each set.
- Find 'neither' n(U) − n(A ∪ B), then check that all four regions add to n(U).
| Phrase in the question | Means |
|---|---|
| at least one / A or B | n(A ∪ B) |
| both | n(A ∩ B) |
| only A | n(A) − n(A ∩ B) |
| neither / none of the two | n(U) − n(A ∪ B) |
Key takeaways: n(A) counts the elements of A. In n(A) + n(B) the common part is counted twice, so n(A ∪ B) = n(A) + n(B) − n(A ∩ B). Fill a Venn diagram from the middle outwards and check that the four regions add up to the total.
Check your understanding
-
1. If n(A) = 12, n(B) = 9 and n(A ∩ B) = 4, what is n(A ∪ B)?
- 21
- 25
- 17
- 13
Show answer
Answer: C. n(A ∪ B) = n(A) + n(B) − n(A ∩ B) = 12 + 9 − 4 = 17. Adding 12 and 9 without subtracting gives 21, which counts the 4 common elements twice.
-
2. If n(A ∪ B) = 40, n(A) = 22 and n(A ∩ B) = 6, what is n(B)?
- 24
- 18
- 12
- 28
Show answer
Answer: A. From n(A ∪ B) = n(A) + n(B) − n(A ∩ B): 40 = 22 + n(B) − 6, so n(B) = 40 − 16 = 24.
-
3. In a class of 45 students (made-up figures), 27 play chess, 20 play carrom and 8 play both. How many play neither game?
- 2
- 6
- 10
- 13
Show answer
Answer: B. Students playing at least one = 27 + 20 − 8 = 39. Neither = 45 − 39 = 6.
-
4. In a group of 80 people where each person speaks Hindi or Marathi or both (made-up figures), 58 speak Hindi and 47 speak Marathi. How many speak only Marathi?
- 25
- 33
- 47
- 22
Show answer
Answer: D. n(H ∪ M) = 80, so both = 58 + 47 − 80 = 25. Only Marathi = 47 − 25 = 22. (Only Hindi = 58 − 25 = 33; check 33 + 25 + 22 = 80.)
-
5. A = {1, 2, 3, 4, 5, 6} and B = {4, 5, 6, 7, 8}. What is n(A ∪ B)?
- 11
- 8
- 3
- 5
Show answer
Answer: B. n(A) = 6, n(B) = 5 and A ∩ B = {4, 5, 6}, so n(A ∩ B) = 3. Then n(A ∪ B) = 6 + 5 − 3 = 8. Listing confirms it: {1, 2, 3, 4, 5, 6, 7, 8}.
Sign in to keep track of the lessons you finish.