• Foundation
  • About 13 min
  • 5 practice questions

Overlapping groups: puzzles with 'both', 'only' and 'neither'

Solve puzzles about people who belong to two groups at once by using the formula for the union of two groups and a simple two-way table.

If something looks wrong, please tell us.

Many puzzles describe a group of people, some of whom like tea, some coffee, and some both or neither. Adding the two counts double-counts the people who belong to both groups, so they need a careful method. This lesson gives a formula and a table that solve all such puzzles with two groups.

The key idea

Call the groups A and B. The people in at least one group are counted by n(A or B) = n(A) + n(B) - n(both). We subtract n(both) because those people were counted once in A and once in B. The people in neither group are the total minus the people in at least one group.

PartHow to find it
At least one groupn(A) + n(B) - n(both)
NeitherTotal - at least one
Only An(A) - n(both)
Only Bn(B) - n(both)
TotalOnly A + Only B + Both + Neither

At least one = A + B - both. Neither = total - at least one. Only A = A - both. Check that the four parts add up to the total.

— Rule to remember

Worked example 1

In a class of 40 students, 25 like tea, 18 like coffee and 5 like neither. How many like both?

The students who like at least one drink are 40 - 5 = 35. By the formula, 35 = 25 + 18 - both, so both = 43 - 35 = 8. Only tea = 25 - 8 = 17, and only coffee = 18 - 8 = 10. Check: 17 + 10 + 8 + 5 = 40.

Worked example 2

In a group of 60 people, 35 play cricket, 28 play football and 12 play both. How many play neither?

At least one game: 35 + 28 - 12 = 51. Neither = 60 - 51 = 9. The four parts are: only cricket 23, only football 16, both 12, neither 9, and 23 + 16 + 12 + 9 = 60.

Worked example 3

In a group of 50, everyone speaks Hindi or English. 30 speak Hindi and 25 speak English. How many speak both?

Everyone speaks at least one language, so the number in at least one group is 50. Then 50 = 30 + 25 - both, so both = 55 - 50 = 5.

Worked example 4

In a class of 30, 18 like maths, 14 like science and 6 like both. How many like neither, and how many like exactly one subject?

At least one subject: 18 + 14 - 6 = 26. Neither = 30 - 26 = 4. Exactly one subject means only maths plus only science: (18 - 6) + (14 - 6) = 12 + 8 = 20. Check: 20 + 6 (both) + 4 (neither) = 30.

Working with a table

You can also draw a two-way table with the rows 'likes tea' and 'does not like tea' and the columns 'likes coffee' and 'does not like coffee'. Fill in what you are told, then use the row and column totals to find the rest. The formula and the table always give the same answer, so use whichever you find easier, and check one against the other.

Key takeaways. Add the two groups, then subtract the overlap once. The people in neither are the total minus those in at least one group. Always check that the four parts add up to the total.

Check your understanding

  1. 1. In a class of 40, 24 play kabaddi, 20 play hockey and 6 play neither. How many play both?

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

    Answer: C. At least one game: 40 - 6 = 34. Both = 24 + 20 - 34 = 10.

  2. 2. In a group of 70 people, 40 like tea, 35 like coffee and 15 like both. How many like neither?

    1. 10
    2. 5
    3. 15
    4. 20
    Show answer

    Answer: A. At least one: 40 + 35 - 15 = 60. Neither = 70 - 60 = 10.

  3. 3. In a group of 50, everyone speaks Tamil or Telugu. 32 speak Tamil and 28 speak Telugu. How many speak both?

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

    Answer: B. Both = 32 + 28 - 50 = 10.

  4. 4. In a class of 30, 18 like maths, 14 like science and 6 like both. How many like maths only?

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

    Answer: D. Maths only = 18 - 6 = 12.

  5. 5. In a group, 12 like only tea, 9 like only coffee, 7 like both and 4 like neither. How many people are in the group?

    1. 28
    2. 30
    3. 32
    4. 36
    Show answer

    Answer: C. Total = 12 + 9 + 7 + 4 = 32.

Privacy · Terms · Refunds · Delivery