Sub topic 7
Turning word problems into set statements
This chapter assumes you can draw a two-set Venn diagram and use n(A∪B) = n(A) + n(B) − n(A∩B). It also assumes you know the complement, which is how "neither" is counted. Here the focus is on the step before any arithmetic: reading a sentence and deciding which region or formula it describes.
Why translation is where marks are lost
Most wrong answers in overlapping-group questions come from a mistranslation, not from arithmetic. A learner reads "60 study Maths" as "60 study only Maths", or treats "either" as "exactly one". The formula is then applied correctly to the wrong numbers.
The fix is a fixed routine: name the sets, name the universe, translate each sentence into one symbolic statement, and only then compute.
The routine
- Fix the universe. Decide what the total is: all students, all employees, or 100 when only percentages are given.
- Name each set with a letter and a meaning, for example A = students who study Maths.
- Rewrite each sentence as a statement about a set or region.
- Mark each statement as a whole set (like n(A)) or as a single region (like "only A").
- Fill the innermost region first, then work outward.
- Check that the regions are non-negative and sum to the total.
A phrase dictionary
| Phrase in the problem | Set statement | Region meaning |
|---|---|---|
| "both A and B", "A as well as B" | A ∩ B | the overlap |
| "A or B", "at least one", "either A or B" | A ∪ B | everything in at least one circle |
| "neither A nor B", "none", "no one" | (A ∪ B)′ | outside both circles |
| "only A", "A but not B", "A alone" | A − B | the A circle minus the overlap |
| "exactly one of A, B" | (A − B) ∪ (B − A) | two crescents, no overlap |
| "not A" | A′ | everything outside A |
| "A and B but not C" | (A ∩ B) − C | one specific region of a three-set diagram |
Two phrases need care.
- "Or" in mathematics is inclusive. "Students who study Maths or Physics" includes those who study both. Only "either ... or ..., but not both" or "exactly one" excludes the overlap.
- A plain count is a whole set. "60 study Maths" means n(A) = 60, and that includes the overlap. The word "only" is what marks a single region.
Worked example 1: the universe is given
A firm has 120 employees. 70 speak English, 60 speak Hindi, and 20 speak neither. Find how many speak both.
Translation:
- Universe: n(U) = 120
- n(E) = 70
- n(H) = 60
- n((E ∪ H)′) = 20
The innermost unknown is the overlap. First find the union by subtracting the complement: n(E ∪ H) = 120 − 20 = 100. Then rearrange the two-set formula: n(E ∩ H) = 70 + 60 − 100 = 30.
total = 120
n_e, n_h, neither = 70, 60, 20
union = total - neither # 100
both = n_e + n_h - union # 30
only_e = n_e - both # 40
only_h = n_h - both # 30
regions = [only_e, both, only_h, neither]
assert all(r >= 0 for r in regions)
assert sum(regions) == total
print(union, both, only_e, only_h) # 100 30 40 30The two assert lines are the consistency check from step 6. They fail if you misread a sentence.
Worked example 2: conditional phrases
Sentences like "30% of those who study Maths also study Physics" change the base. The 30% applies to the Maths group, not to the whole universe.
Problem: 60% of a class studies Maths. Of the Maths students, 30% also study Physics. 20% of the class studies neither subject. What percentage studies Physics?
Take the class as 100.
- n(A) = 60
- n(A ∩ B) = 30% of 60 = 18
- Neither = 20, so n(A ∪ B) = 80
- n(B) = 80 − 60 + 18 = 38
total = 100
n_a = 60
both = 0.30 * n_a # 18.0, the base is A, not the class
neither = 20
union = total - neither # 80
n_b = union - n_a + both # 38.0
only_b = n_b - both # 20.0
only_a = n_a - both # 42.0
assert only_a + both + only_b + neither == total
print(n_b) # 38.0The check passes: 42 + 18 + 20 + 20 = 100. Had you taken 30% of 100 as the overlap, you would get 30, which exceeds nothing here but is the wrong region count. The check would not catch it, so the base must be read from the wording.
Worked example 3: "only" and "but not"
In a group of 50, 30 play cricket and 25 play football. 10 play neither. How many play football but not cricket?
- Union = 50 − 10 = 40
- Both = 30 + 25 − 40 = 15
- Football but not cricket = n(F) − both = 25 − 15 = 10
The phrase "but not cricket" is a signal to subtract the overlap from the football total. The same statement is F − C, or F ∩ C′.
Hidden information in ordinary sentences
Some data is implied rather than stated. Translate these before filling the diagram.
- "Everyone plays at least one game" means the universe equals the union, so "neither" = 0.
- "Every footballer also plays cricket" means F ⊆ C. The region "only F" is empty, and n(F ∩ C) = n(F).
- "No student studies both" means the sets are disjoint and n(A ∩ B) = 0.
- "x more than y" is a difference of two region or set counts. Write it as an equation, such as n(A) = n(B) + 12.
- "Twice as many play only A as play both" is a relationship between two regions. Name them, for instance only A = 2x and both = x.
When a problem gives relationships rather than numbers, assign a variable to the smallest region and express the others through it. Then use the total to solve one linear equation.
Whole-set counts versus region counts
Keep a short label beside every number in your working. The table below shows how the same number changes meaning with wording.
| Wording | Label | Region(s) it covers |
|---|---|---|
| "40 like tea" | n(T) = 40 | only T and both |
| "40 like only tea" | only T = 40 | one region |
| "40 like tea but not coffee" | T − C = 40 | one region |
| "40 like tea or coffee" | n(T ∪ C) = 40 | three regions |
If you cannot say which row a number belongs in, reread the sentence before you continue.
Common errors
- Treating a total as an "only" count. The fix is to subtract the overlap only when the problem asks for "only" or "but not".
- Reading "or" as exclusive. Add the overlap back once, using the formula.
- Forgetting the complement. If a "neither" figure is given, subtract it from the universe before using inclusion-exclusion. The formula gives the union, not the total.
- Using the wrong base for percentages. See the warning above.
- Skipping the consistency check. A negative region means a sentence was misread.
A self-contained helper
This function turns the three most common two-set inputs into all four regions and runs the checks automatically. It expects the total, the two set sizes, and the "neither" count.
def two_set_regions(total, n_a, n_b, neither):
union = total - neither
both = n_a + n_b - union
only_a = n_a - both
only_b = n_b - both
regions = {"only_a": only_a, "both": both,
"only_b": only_b, "neither": neither}
if any(v < 0 for v in regions.values()):
raise ValueError("inconsistent data: negative region")
assert sum(regions.values()) == total
return regions
print(two_set_regions(120, 70, 60, 20))
# {'only_a': 40, 'both': 30, 'only_b': 30, 'neither': 20}If you pass inconsistent data, for example two_set_regions(100, 80, 70, 40), the function raises an error. The union would be 60, which is smaller than n(A) = 80, so no valid diagram exists. In an exam, this is how you detect a misread.
Exercise
A club has 200 members. 120 drink tea, 90 drink coffee, and 30 drink neither. How many drink only tea?
Show answer
Union = 200 − 30 = 170. Both = 120 + 90 − 170 = 40. Only tea = 120 − 40 = 80.
Exercise
In a survey, 45% of people read newspaper A. Of those who read A, 30% also read newspaper B. 25% read neither. What percentage read B?
Show answer
Take the total as 100. n(A) = 45, so n(A ∩ B) = 30% of 45 = 13.5. Union = 100 − 25 = 75. n(B) = 75 − 45 + 13.5 = 43.5, so 43.5% read B.
Exercise
In a group of 80, 50 like chess and 40 like carrom. Everyone likes at least one game. How many like exactly one game?
Show answer
"At least one" means neither = 0, so the union is 80. Both = 50 + 40 − 80 = 10. Only chess = 40 and only carrom = 30, so exactly one = 70.