Set questions in SSC and bank exams usually describe a survey: so many people like tea, so many like coffee, some like both and some like neither. Every one of them rests on one counting rule. When you add the two groups, the people in both get counted twice, so you take them out once:

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

Here n(A ∪ B) is the number in at least one set and n(A ∩ B) the number in both. Anyone outside both sets is "neither", so total = n(A ∪ B) + neither.

Worked example 1: tea and coffee

In a group of 60, 35 like tea, 30 like coffee and 10 like neither. How many like both?

At least one = 60 − 10 = 50. Both = 35 + 30 − 50 = 15.

Once you know "both", the rest follows: tea only = 35 − 15 = 20 and coffee only = 30 − 15 = 15.

With three sets A, B and C, adding the three totals counts the pairwise overlaps twice, so you subtract them. That removes the centre (people in all three) once too often, so you add it back:

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

Read it as: add the singles, subtract the pairs, add the triple. The same pattern continues for four sets, but exam questions stop at three.

Worked example 2: three languages

Of 100 students, 50 study Hindi, 45 English and 40 Maths. 20 study Hindi and English, 15 English and Maths, 18 Hindi and Maths, and 8 study all three. How many study none?

At least one = 50 + 45 + 40 − 20 − 15 − 18 + 8 = 90, so none = 100 − 90 = 10.

Three overlapping circles split into seven regions. Label them once and every "only", "exactly" and "at least" question becomes a matter of adding the right regions.

Phrase in the questionRegions to add
Only AA, minus everything it shares with B or C
Exactly one setonly A + only B + only C
Exactly two setsthe three "pair only" regions (each pair minus the centre)
All threethe centre
At least twoexactly two + all three
At least oneall seven regions, n(A ∪ B ∪ C)
Nonetotal − at least one

The key move is to fill the diagram from the centre outwards. Write the "all three" number first, subtract it from each pairwise figure to get the "pair only" regions, then subtract from each set total to get the "only" regions.

Worked example 3: filling the regions

Take the numbers from example 2. Centre = 8. Pair-only regions: Hindi-English 20 − 8 = 12, English-Maths 15 − 8 = 7, Hindi-Maths 18 − 8 = 10. So exactly two = 29.

Only Hindi = 50 − 12 − 10 − 8 = 20. Only English = 45 − 12 − 7 − 8 = 18. Only Maths = 40 − 7 − 10 − 8 = 15. So exactly one = 53.

Check: 53 + 29 + 8 = 90, the same "at least one" figure as before.

Some questions do not give the pairwise overlaps at all. They give the three set totals, the number in at least one set and the number in all three, and ask for "exactly two". Two facts settle it:

  • Sum of set totals = (exactly one) + 2 × (exactly two) + 3 × (all three), because a person in two sets is counted twice and a person in three sets three times.
  • At least one = (exactly one) + (exactly two) + (all three).

Subtracting the second from the first gives sum of totals − at least one = (exactly two) + 2 × (all three).

Worked example 4: no pairwise data

Three clubs have 60, 50 and 40 members. 100 people belong to at least one club and 10 belong to all three. How many belong to exactly two?

Sum of totals = 150. Then 150 − 100 = exactly two + 2 × 10, so exactly two = 50 − 20 = 30.

From there, exactly one = 100 − 30 − 10 = 60.

A favourite twist asks for the least or greatest possible overlap. Treat it as a squeeze on the total.

  • Least overlap of two sets: n(A) + n(B) − total, if that is positive; otherwise zero.
  • Greatest overlap of two sets: the smaller of n(A) and n(B).
  • Least number in all three: n(A) + n(B) + n(C) − 2 × total, if positive.

Worked example 5: least overlap

Out of 100 people, 70 read newspaper P and 60 read newspaper Q. At least how many read both? 70 + 60 − 100 = 30. At most 60 can read both.

Worked example 6: least in all three

Out of 100 students, 70 passed Physics, 75 Chemistry and 80 Maths. At least how many passed all three? 70 + 75 + 80 − 2 × 100 = 25.

Why the 2 × total? Each of the 100 students can "absorb" at most two of the passes without being in all three, so at most 200 passes can sit outside the centre. The remaining 225 − 200 = 25 must belong to students who passed all three.

The same formulas work with percentages. Treat the whole group as 100%.

Worked example 7: failed in both

In an exam, 35% failed English, 25% failed Maths and 10% failed both. What percentage passed both?

Failed at least one = 35 + 25 − 10 = 50%. Passed both = 100 − 50 = 50%.

  • ✘ Reading "20 like tea and coffee" as "20 like only tea and coffee". Pairwise figures normally include the people in all three sets; subtract the centre first.
  • ✘ Forgetting the "neither" group. The union is the total minus those in no set, not the total itself.
  • ✘ Adding back the triple overlap twice. In the three-set formula it is added once.
  • ✘ Mixing "exactly two" with "at least two". At least two includes the centre.
  • ✘ Giving a negative answer to a minimum-overlap question. If n(A) + n(B) is less than the total, the least overlap is zero.

For diagram-choice questions (which figure shows doctors, women and mothers), see Venn diagram reasoning. Two-subject pass and fail problems are worked in passing marks percentage.

Q1. In a group of 80, 40 like cricket, 35 like football and 15 like neither. How many like both? easy

✅ Answer: (b) 10

💡 Explanation: At least one = 80 − 15 = 65. Both = 40 + 35 − 65 = 10.

Q2. 30 people read A, 25 read B and 20 read C. 10 read A and B, 8 read B and C, 6 read A and C, and 4 read all three. How many read at least one? medium

✅ Answer: (b) 55

💡 Explanation: Inclusion-exclusion: 30 + 25 + 20 − 10 − 8 − 6 + 4 = 55.

Q3. Using the same data (A and B 10, B and C 8, A and C 6, all three 4), how many read exactly two papers? medium

✅ Answer: (d) 12

💡 Explanation: Subtract the centre from each pair: 6 + 4 + 2 = 12.

Q4. Three sets have 50, 40 and 30 members. 90 people are in at least one set and 10 are in all three. How many are in exactly two sets? hard

✅ Answer: (a) 10

💡 Explanation: Sum of totals − at least one = exactly two + 2 × all three: 120 − 90 = 30 = exactly two + 20, so exactly two = 10.

Q5. Of 100 students, 80 passed English, 85 Hindi and 90 Maths. At least how many passed all three? hard

✅ Answer: (c) 55

💡 Explanation: Least in all three = 80 + 85 + 90 − 2 × 100 = 55.

Q6. 40% of students failed Science, 30% failed Maths and 15% failed both. What percentage passed both? easy

✅ Answer: (b) 45%

💡 Explanation: Failed at least one = 40 + 30 − 15 = 55%, so 100 − 55 = 45% passed both.

What is the formula for three sets in a Venn diagram?

n(A ∪ B ∪ C) = n(A) + n(B) + n(C) − n(A ∩ B) − n(B ∩ C) − n(A ∩ C) + n(A ∩ B ∩ C): add the singles, subtract the pairs, add the triple.

How do I find the number in exactly two sets?

Subtract the all-three figure from each pairwise overlap and add the three results. Without pairwise data, use: sum of set totals − at least one = exactly two + 2 × all three.

All problems and solutions on this page are original. No outside facts are relied on; every numeric answer is recomputed by software before publishing.

How this page was prepared. Drafted with AI assistance (Claude (Anthropic AI model)) from the sources listed above. 14 calculations on this page were recomputed by software and matched. Automated checks also covered structure, internal links and duplicate text. Software checks cannot confirm facts.

Found an error? Report it and we will correct the page.