• Practice
  • About 13 min
  • 5 practice questions

Two sets: counting with the union rule

Find the numbers in only one set, in both, in either, and in neither using n(A or B) = n(A) + n(B) minus n(both).

If something looks wrong, please tell us.

Number problems ask how many people belong to one group, or both, or neither. A two-circle diagram has four regions: only A, both, only B and outside both. A single formula links them.

The rule

Adding the sizes of A and B counts the people in both circles twice. So the number in A or B (either, or both) is n(A) plus n(B) minus n(both). The rest of the group lies outside both circles.

  • Either or both = n(A) + n(B) minus n(both).
  • Only A = n(A) minus n(both).
  • Only B = n(B) minus n(both).
  • Neither = total minus n(either or both).

Worked examples

Example. In a class of 60, 35 like cricket, 28 like football, and 12 like both.

  • Either or both: 35 plus 28 minus 12 = 51.
  • Neither: 60 minus 51 = 9.
  • Only cricket: 35 minus 12 = 23.
  • Only football: 28 minus 12 = 16.
  • Check: 23 plus 12 plus 16 plus 9 = 60.

Example 2. In a group of 40 people, 22 drink tea, 18 drink coffee, and 8 drink neither. Either or both: 40 minus 8 = 32. Both: 22 plus 18 minus 32 = 8.

Either or both = n(A) + n(B) minus n(both). Fill the four regions and check that they add up to the total.

— Rule to remember

Key takeaways

  • Adding two sets counts the overlap twice.
  • Either or both = A + B minus both.
  • The four regions add up to the total.

Check your understanding

  1. 1. In a class of 80, 45 study art, 40 study music and 15 study both. How many study at least one of the two?

    1. 85
    2. 70
    3. 60
    4. 55
    Show answer

    Answer: B. Either or both = 45 + 40 - 15 = 70.

  2. 2. In the same class of 80 (45 art, 40 music, 15 both), how many study neither subject?

    1. 0
    2. 15
    3. 10
    4. 25
    Show answer

    Answer: C. At least one is 70, so neither = 80 - 70 = 10.

  3. 3. In the same class of 80 (45 art, 40 music, 15 both), how many study only music?

    1. 40
    2. 30
    3. 25
    4. 15
    Show answer

    Answer: C. Only music = n(music) - n(both) = 40 - 15 = 25. Check: 30 + 15 + 25 + 10 = 80.

  4. 4. Of 50 people, 28 drink tea, 30 drink coffee and 6 drink neither. How many drink both?

    1. 14
    2. 8
    3. 16
    4. 12
    Show answer

    Answer: A. Either or both = 50 - 6 = 44. Both = 28 + 30 - 44 = 14.

  5. 5. Every one of 60 pupils studies X or Y or both. 38 study X and 35 study Y. How many study both?

    1. 22
    2. 25
    3. 13
    4. 3
    Show answer

    Answer: C. Nobody studies neither, so either or both = 60. Both = 38 + 35 - 60 = 13.

Sign in to keep track of the lessons you finish.

Next lesson → Three sets: inclusion and exclusion

Privacy · Terms · Refunds · Delivery