Sets: Union, Intersection and Solving Two-Set Venn Diagram Problems

FORM 2 • TERM 1 • LESSON 13

In Form 1 you met sets, subsets and Venn diagrams and solved some Venn diagram word problems. This lesson pulls those ideas together and goes further: you will read diagrams of subsets, disjoint and intersecting sets, count the members of a union and an intersection, and solve two-set problems – including ones where you have to find an unknown.

Learning outcomes

By the end of this lesson you should be able to:

  • 2.2.1.1 – Interpret information about subsets, disjoint sets and intersecting sets.
  • 2.2.1.2 – Count the members of the union and the intersection of two sets.
  • 2.2.1.3 – Show information about sets on the right Venn diagram.
  • 2.2.1.4 – Count the members of the union of two sets, both intersecting and disjoint.
  • 2.2.1.5 – Solve two-set Venn diagram problems when you are given the number of members in the sets.
  • 2.2.1.6 – Use a Venn diagram to solve word problems involving two sets.

Quick reminder

  • The universal set U contains everything being talked about. It is drawn as a rectangle.
  • n(A) means the number of members of set A.
  • The intersection A ∩ B is the set of members in both A and B (the overlap).
  • The union A ∪ B is the set of members in A or B or both (everything inside the circles).
  • The complement A′ is everything in U that is not in A.

Subsets, disjoint sets and intersecting sets

Three Venn diagrams: B inside A, two circles that do not touch, and two overlapping circles UB ⊂ A (subset) AB UDisjoint AB UIntersecting AB
Figure 1 – The three ways two sets can sit together.
  • Subset: every member of B is also in A, so B ⊂ A and B’s circle is drawn inside A’s. Then A ∩ B = B and A ∪ B = A.
  • Disjoint: A and B have no members in common, so A ∩ B = { } (the empty set) and the circles do not touch.
  • Intersecting: A and B share some members but not all, so the circles overlap.

Counting a union and an intersection

If A = {1, 2, 3, 4, 6, 12} (the factors of 12) and B = {1, 2, 3, 6, 9, 18} (the factors of 18):

  • A ∩ B = {1, 2, 3, 6}, so n(A ∩ B) = 4.
  • A ∪ B = {1, 2, 3, 4, 6, 9, 12, 18}, so n(A ∪ B) = 8.

Notice that n(A) + n(B) = 6 + 6 = 12, but the union has only 8 members. That is because the 4 shared members were counted twice. Taking them away once gives the key formula:

n(A ∪ B) = n(A) + n(B) − n(A ∩ B)

For disjoint sets there is no overlap, so n(A ∪ B) = n(A) + n(B).

Filling in a Venn diagram from numbers

  1. Put the number in the intersection in first.
  2. Work out “A only” = n(A) − n(A ∩ B) and “B only” = n(B) − n(A ∩ B).
  3. Work out the region outside both circles = n(U) − n(A ∪ B).
  4. Check that all four regions add up to n(U).

TRY ITFill in a two-set Venn diagram

Type the four facts that two-set problems usually give you. The diagram fills in each region and the steps show the working.

Venn diagram with two overlapping circles A and B inside a rectangle U U AB

Worked examples

Example 1: Reading a diagram

Question: In a Venn diagram, the regions are: A only 9, A ∩ B 4, B only 6, outside both 3. Find n(A), n(B), n(A ∪ B), n(U) and n(A′).

  1. n(A) = 9 + 4 = 13 and n(B) = 4 + 6 = 10.
  2. n(A ∪ B) = 9 + 4 + 6 = 19.
  3. n(U) = 19 + 3 = 22.
  4. n(A′) = 6 + 3 = 9 (everything not in A).

Answer: 13, 10, 19, 22 and 9.

Example 2: Cricket and football

Question: In a class of 40 students, 25 play cricket, 18 play football and 7 play both. How many play
(a) cricket only
(b) football only
(c) at least one of the sports
(d) neither?

  1. Put 7 in the overlap.
  2. Cricket only: 25 − 7 = 18. Football only: 18 − 7 = 11.
  3. At least one: 18 + 7 + 11 = 36 (or 25 + 18 − 7 = 36).
  4. Neither: 40 − 36 = 4. Check: 18 + 7 + 11 + 4 = 40. ✓

Answer:
(a) 18
(b) 11
(c) 36
(d) 4.

Venn diagram for cricket C and football F with 18 in C only, 7 in both, 11 in F only and 4 outside U CF 187114
Figure 2 – The Venn diagram for Example 2.

Example 3: Disjoint sets

Question: A = {even numbers from 1 to 10} and B = {odd numbers from 1 to 10}. Find n(A ∩ B) and n(A ∪ B).

  1. No number is both even and odd, so A and B are disjoint: n(A ∩ B) = 0.
  2. n(A ∪ B) = n(A) + n(B) = 5 + 5 = 10.

Answer: n(A ∩ B) = 0 and n(A ∪ B) = 10.

Example 4: Finding the overlap

Question: In a group of 30 students, 19 take Spanish, 15 take French and 2 take neither. How many take both?

  1. Students taking at least one language: 30 − 2 = 28.
  2. Use the formula: 28 = 19 + 15 − n(both), so n(both) = 34 − 28 = 6.
  3. Spanish only = 13, French only = 9. Check: 13 + 6 + 9 + 2 = 30. ✓

Answer: 6 students take both.

Example 5: Using x

Question: A survey of 35 people asked who likes doubles (D) and who likes roti (R). 20 like doubles, 16 like roti and 5 like neither. Let x be the number who like both. Find x.

  1. Doubles only = 20 − x and roti only = 16 − x.
  2. All the regions add to 35: (20 − x) + x + (16 − x) + 5 = 35.
  3. So 41 − x = 35, and x = 6.
  4. Doubles only = 14, roti only = 10. Check: 14 + 6 + 10 + 5 = 35. ✓

Answer: x = 6.

Common mistakes

  • Putting the whole of n(A) in the “A only” region. Always subtract the overlap first.
  • Adding n(A) and n(B) to get the union. This counts the overlap twice unless the sets are disjoint.
  • Forgetting the region outside both circles. All four regions must add up to n(U).
  • Mixing up ∩ and ∪. ∩ (like an “n” shape) is the overlap; ∪ (like a cup) holds everything in either set.
  • Reading “at least one” as “exactly one”. At least one includes those in both.

Practice questions

Try these yourself first, then open each answer to check your working.

1. P = {a, b, c, d, e} and Q = {a, e, i, o, u}. Find
(a) P ∩ Q
(b) P ∪ Q
(c) n(P ∪ Q).

Show answer

(a) {a, e}
(b) {a, b, c, d, e, i, o, u}
(c) 8.

2. Say whether each pair is a subset pair, disjoint or intersecting:
(a) A = {1, 2, 3}, B = {1, 2, 3, 4, 5}
(b) C = {2, 4, 6}, D = {1, 3, 5}
(c) E = {3, 6, 9}, F = {2, 3, 4}.

Show answer

(a) A ⊂ B (subset)
(b) Disjoint
(c) Intersecting (they share 3).

3. n(A) = 14, n(B) = 9 and n(A ∩ B) = 5. Find n(A ∪ B).

Show answer

14 + 9 − 5 = 18.

4. M and N are disjoint, n(M) = 12 and n(N) = 7. Find n(M ∪ N).

Show answer

19.

5. In a club of 50 members, 32 swim, 24 run and 10 do both. How many
(a) only swim
(b) only run
(c) do neither?

Show answer

(a) 22
(b) 14
(c) 50 − 46 = 4.

6. In a class of 36, 21 have a dog, 15 have a cat and 6 have neither. How many have both?

Show answer

36 − 6 = 30 have at least one, so both = 21 + 15 − 30 = 6.

7. n(U) = 40, n(A) = 22, n(B) = 25 and n((A ∪ B)′) = 3. Using x for n(A ∩ B), write an equation and find x.

Show answer

(22 − x) + x + (25 − x) + 3 = 40, so 50 − x = 40 and x = 10.

8. A Venn diagram shows A only = 2x, A ∩ B = 5, B only = x + 1, outside = 4. If n(U) = 31, find x and n(A).

Show answer

2x + 5 + x + 1 + 4 = 31, so 3x + 10 = 31 and x = 7. n(A) = 14 + 5 = 19.

Quick check

1. Write the formula for n(A ∪ B).

Show answer

n(A ∪ B) = n(A) + n(B) − n(A ∩ B).

2. What is n(A ∩ B) if A and B are disjoint?

Show answer

0.

3. If n(A) = 10 and n(A ∩ B) = 4, how many are in A only?

Show answer

6.

Previous: Solving Inequalities and Showing Answers on a Number Line and in Set Builder Notation

Next: Relations and Arrow Diagrams: Domain, Range, Mappings and Functions

Curriculum link: This post is relevant to the Trinidad and Tobago National Lower Secondary (NCSE) Mathematics Curriculum – Form 2, Term 1, Strand 2.2 Sets, Relations and Functions, Topic 2.2.1 Sets – Learning Outcomes 2.2.1.1 (subsets, disjoint and intersecting sets), 2.2.1.2 (counting the union and intersection), 2.2.1.3 (representing sets on Venn diagrams), 2.2.1.4 (the union of intersecting and disjoint sets), 2.2.1.5 (two-set problems given the number of elements) and 2.2.1.6 (two-set word problems).

Updates

2026/10/23

– First version of this lesson.

2026/10/25

– Put each lettered part of the questions and answers on its own line.

© 2026 Vedesh Kungebeharry. All rights reserved.

Solving Problems with Sets and Venn Diagrams (Both, Only and Neither)

In Sets for Beginners you learned set notation and drew two-set Venn diagrams. Now you will use them to solve problems – the kind that start “In a class of 30 students…”. Venn diagrams turn a confusing paragraph into a clear picture, and a simple method (start in the middle and work outwards) finds every missing number.

The method

  1. Understand: name the sets (for example C = cricket, F = football) and the universal set U (everyone in the question).
  2. Draw a rectangle for U with two overlapping circles. There are four regions: C only, both (C ∩ F), F only, and neither (outside both circles).
  3. Fill in the middle first – the number in both sets. If it is unknown, call it x.
  4. Work outwards: C only = n(C) − both; F only = n(F) − both; neither = n(U) − everyone inside the circles.
  5. Check: the four regions must add up to n(U).

A useful formula sums this up: n(A ∪ B) = n(A) + n(B) − n(A ∩ B). We subtract the overlap because those people were counted twice – once in A and once in B.

TRY ITVenn diagram problem solver

Type the total, the number in each set and the number in both. The solver fills in every region of the Venn diagram and shows the steps.

Example: in a class, some students play cricket (C) and some play football (F).

Venn diagram with numbers in each region U CF

Worked examples

Example 1: Finding “neither”

Question: In a class of 30 students, 18 play cricket, 15 play football and 7 play both. How many play
(a) only cricket
(b) only football
(c) neither?

  1. Both = 7 (the middle).
  2. (a) Cricket only = 18 − 7 = 11.
  3. (b) Football only = 15 − 7 = 8.
  4. At least one sport: 11 + 7 + 8 = 26.
  5. (c) Neither = 30 − 26 = 4. Check: 11 + 7 + 8 + 4 = 30 ✓.

Answer:
(a) 11
(b) 8
(c) 4.

Example 2: Finding “both” with x

Question: Of 40 people at a party, 25 drank juice, 17 drank coconut water and 3 drank neither. How many drank both?

  1. Let x = number who drank both. Then juice only = 25 − x and coconut water only = 17 − x.
  2. All the regions add to 40: (25 − x) + x + (17 − x) + 3 = 40.
  3. This simplifies to 45 − x = 40, so x = 5.
  4. Check: 20 + 5 + 12 + 3 = 40 ✓.

Answer: 5 people drank both.

Example 3: Using the formula

Question: In a group of 32 students, everyone except 6 studies at least one of Spanish or French. 20 study Spanish and 14 study French. How many study both?

  1. n(S ∪ F) = 32 − 6 = 26.
  2. n(S ∪ F) = n(S) + n(F) − n(S ∩ F), so 26 = 20 + 14 − n(S ∩ F).
  3. n(S ∩ F) = 34 − 26 = 8.

Answer: 8 study both.

Example 4: Number sets

Question: U = {whole numbers 1 to 20}, A = {even numbers}, B = {multiples of 3}. Find n(A ∩ B), n(A ∪ B) and the number of elements in neither.

  1. A has 10 members and B = {3, 6, 9, 12, 15, 18} has 6.
  2. A ∩ B = {6, 12, 18}, so n(A ∩ B) = 3.
  3. n(A ∪ B) = 10 + 6 − 3 = 13.
  4. Neither: 20 − 13 = 7 (these are 1, 5, 7, 11, 13, 17, 19).

Answer: 3, 13 and 7.

Common mistakes

  • Putting n(A) in the “A only” region. n(A) includes the overlap; A only = n(A) − both.
  • Adding n(A) + n(B) for the union without subtracting the overlap.
  • Forgetting the “neither” region outside the circles.
  • Not checking that the regions add up to the total.

Practice questions

Try these yourself first, then open each answer to check your working.

1. In a group of 25, 12 like mangoes, 9 like pawpaws and 5 like both. How many like
(a) mangoes only
(b) pawpaws only
(c) at least one
(d) neither?

Show answer

(a) 7
(b) 4
(c) 16
(d) 9.

2. In a class of 35, 22 have a bicycle, 15 have a skateboard and 6 have neither. How many have both? How many have a bicycle only?

Show answer

x = 22 + 15 + 6 − 35 = 8 have both; 22 − 8 = 14 have a bicycle only.

3. Of 40 students, 4 take neither art nor music, 24 take art and 18 take music. How many take both?

Show answer

40 − 4 = 36 take at least one; 24 + 18 − 36 = 6 take both.

4. In a survey of 50 households, 28 have a dog, 20 have a cat and 8 have both. How many have neither?

Show answer

50 − (28 + 20 − 8) = 50 − 40 = 10.

5. U = {1, 2, …, 30}, P = {multiples of 5}, Q = {multiples of 4}. List P ∩ Q and find n(P ∪ Q) and the number of elements in neither.

Show answer

P ∩ Q = {20}; n(P ∪ Q) = 6 + 7 − 1 = 12; neither = 18.

6. A team of 23 players: 18 can bat, 10 can bowl and every player can do at least one. How many can do both?

Show answer

18 + 10 − 23 = 5.

Quick check

1. In which region do you write the number in both sets?

Show answer

The overlap (intersection) in the middle.

2. What is n(A ∪ B) if n(A) = 10, n(B) = 8 and n(A ∩ B) = 3?

Show answer

15.

3. What must the four regions add up to?

Show answer

The number in the universal set, n(U).

Next: Decimals: Place Value, Number Names, Comparing and Ordering

Curriculum link: This post is relevant to the Trinidad and Tobago National Lower Secondary (NCSE) Mathematics Curriculum – Form 1, Term 2, Strand 1.2 Sets, Relations and Functions, Topic 1.2.2 Sets – Learning Outcome 1.2.2.1 (solving problems involving sets, using a problem-solving approach such as Pólya’s).

Updates

2026/10/25

– Put each lettered part of the questions and answers on its own line.

© 2026 Vedesh Kungebeharry. All rights reserved.