Sub topic 8
Two-set Venn diagrams: totals, overlap, and 'neither'
This chapter assumes you can do integer arithmetic, solve a linear equation with one unknown, and read a word problem for the exact meaning of "and", "or", "only", and "neither". It builds on the counting principles from earlier chapters. Two-set Venn problems are the simplest overlap questions on the GRE, and the three-set version in the next chapters extends the same idea.
The working model: one population, four regions
A Venn diagram with two sets, A and B, splits a group of people (or objects) into four regions that do not overlap:
- In A only.
- In both A and B.
- In B only.
- In neither A nor B.
Every item in the group belongs to exactly one of these regions. This is why the model is reliable: the four region counts always add up to the total.
The two circle totals are not region counts. "60 students take A" counts everyone inside circle A, so it includes the students who also take B. That is the source of most errors in this topic.
The two formulas
Adding the circle totals counts the overlap twice, so subtract it once:
- Either (at least one) = A + B − Both
- Total = Either + Neither = A + B − Both + Neither
Here "A" and "B" mean the full circle totals. The second formula is the one to memorize, because it has all five quantities in one equation. Given any four, you can solve for the fifth.
Worked example
A group of 100 students has 60 who take course A, 45 who take course B, and 20 who take both. How many take neither course?
# Two-set Venn: 100 students, 60 take A, 45 take B, 20 take both
total, a, b, both = 100, 60, 45, 20
either = a + b - both
print(either) # 85
print(total - either) # 15 take neitherAdding 60 + 45 gives 105, which is more than the 100 students in the group. That is the signal that the overlap was counted twice. Subtracting the 20 who take both gives 85 students taking at least one course, so 100 − 85 = 15 take neither.
Now fill in the other regions. A only is 60 − 20 = 40. B only is 45 − 20 = 25. Check: 40 + 20 + 25 + 15 = 100. Always run this sum at the end. If it fails, one region is wrong.
Translating the wording
Most of the difficulty on the GRE is in the language. This table maps common phrases to regions and formulas.
| Phrase | Meaning | Value in the example |
|---|---|---|
| "A and B", "both" | The overlap | 20 |
| "A or B", "at least one", "either" | A + B − Both | 85 |
| "Only A", "A but not B" | A − Both | 40 |
| "Exactly one" | A + B − 2 × Both | 65 |
| "Neither", "none of the two" | Total − Either | 15 |
| "At most one" | Total − Both | 80 |
| "At least one" | Total − Neither | 85 |
Two phrases need care. "Exactly one" excludes the overlap altogether, so you subtract Both twice: once to fix the double count, and once more to remove the overlap itself. In the example, 60 + 45 − 40 = 65, which matches A only plus B only (40 + 25). "At most one" includes the people in neither set, so it is everyone except those in both.
In everyday speech, "or" is sometimes meant as exclusive ("tea or coffee, not both"). On the GRE, unless the problem says "but not both" or "exactly one", "or" includes the overlap.
Solving for an unknown
Because the total formula links five quantities, any missing one can be found by rearranging. The usual unknown is the overlap.
Suppose 50 people are surveyed, 30 own a car, 25 own a bike, and 8 own neither. How many own both?
- People owning at least one: 50 − 8 = 42.
- Plug into Either = A + B − Both: 42 = 30 + 25 − Both.
- Both = 55 − 42 = 13.
Check the regions: car only is 30 − 13 = 17, bike only is 25 − 13 = 12, and 17 + 13 + 12 + 8 = 50.
The same steps work when the unknown is a circle total or the "neither" count. Write the formula first, substitute the numbers you know, and solve the one-variable equation. Do not try to reason about the diagram in your head when the equation is faster.
A small helper makes the relationships explicit and is useful for checking practice problems:
def regions(total, a, b, both):
"""Return the four Venn regions for two sets."""
either = a + b - both
return {
"a_only": a - both,
"both": both,
"b_only": b - both,
"neither": total - either,
}
r = regions(100, 60, 45, 20)
print(r) # {'a_only': 40, 'both': 20, 'b_only': 25, 'neither': 15}
print(sum(r.values())) # 100, the regions always sum to the total
# Solving for the overlap: 50 people, 30 cars, 25 bikes, 8 neither
total, a, b, neither = 50, 30, 25, 8
either = total - neither
print(a + b - either) # 13 own bothPercentages and ratios
GRE problems often give percentages instead of counts. The formula is unchanged. Treat the total as 100% (or pick 100 people), and work in percent.
Example: 70% of employees use email, 40% use chat, and 15% use neither. What percent use both?
- Either = 100 − 15 = 85.
- 85 = 70 + 40 − Both, so Both = 25%.
When a problem gives only fractions or ratios and no total, picking a convenient total (100, or a common multiple of the denominators) is allowed because the answer is a proportion. If the question asks for an actual count, you need the real total from the problem.
Edge cases: ranges for the overlap
Sometimes the overlap is not given, and the question asks for the smallest or largest possible value. Two facts limit it:
- The overlap cannot exceed the smaller circle: Both ≤ min(A, B).
- The two circles must fit inside the total. If A + B is greater than the total, the circles are forced to overlap by at least the excess: Both ≥ A + B − Total. If A + B is at most the total, the minimum is 0.
total, a, b = 100, 70, 60
min_both = max(0, a + b - total) # 30: 130 people-slots in a group of 100
max_both = min(a, b) # 60: the smaller circle sits fully inside the larger
print(min_both, max_both) # 30 60At the minimum overlap, "neither" is 0 here, since everyone is in at least one circle. At the maximum overlap, one circle sits entirely inside the other, so Either = max(A, B) = 70 and Neither = 30. The extremes of "neither" and "both" move in opposite directions: pushing the overlap up pushes "neither" up too.
Common errors
- Treating a circle total as "only". "45 take B" includes those who also take A. Subtract the overlap to get B only.
- Forgetting the neither region. If the problem says "all students take at least one", Neither is 0. If it does not say so, Neither may be positive, and you must use the total formula.
- Adding instead of subtracting the overlap. When A + B exceeds the total, that is a sign the overlap is at least the excess, not a sign of an error in the problem.
- Using the formula on mutually exclusive categories. If the sets cannot overlap (for example, "left-handed" and "right-handed" in a simple model), Both = 0 and the formula reduces to A + B. Do not look for an overlap that the problem rules out.
- Misreading "only". "Take only A" is A − Both, not A.
- Mixing units. A percentage and a count in the same equation produce nonsense. Convert one to the other first.
A two-way table as an alternative
Some learners find a 2 × 2 table clearer than circles, especially when the problem gives "not A" or "not B" counts. Rows are in A and not in A, columns are in B and not in B. The four cells are the same four regions, and the row and column sums give the circle totals.
| Row | In B | Not in B | Row total |
|---|---|---|---|
| In A | 20 | 40 | 60 |
| Not in A | 25 | 15 | 40 |
| Column total | 45 | 55 | 100 |
Read the table to confirm each fact from the example. The In A row sums to 60, the In B column sums to 45, and the grand total is 100. Fill the cells you know, then use the row and column sums to fill the rest. The table is useful when a question gives you "not in A" directly, since that is just a row total.
Checking your answer
Before moving on, run these checks:
- Each region count is non-negative.
- The four regions sum to the total.
- The A-circle regions (A only plus Both) equal A, and the B-circle regions (B only plus Both) equal B.
- The answer fits the question. If the question asks for "exactly one", your answer should not include the overlap.
These checks take under a minute and catch almost every arithmetic slip.
Exercise
In a group of 40 people, 25 speak French, 18 speak German, and 6 speak neither language. How many speak both?
Show answer
People speaking at least one language: 40 − 6 = 34. Then 34 = 25 + 18 − Both, so Both = 43 − 34 = 9. Check: French only 16, both 9, German only 9, neither 6, and 16 + 9 + 9 + 6 = 40.
Exercise
In a class of 100, 60 take A, 45 take B, and 20 take both. How many take exactly one of the two courses, and how many take at most one?
Show answer
Exactly one = 60 + 45 − 2 × 20 = 65 (A only 40 plus B only 25). At most one = Total − Both = 100 − 20 = 80 (the 65 with exactly one plus the 15 with neither).
Exercise
A group has 50 people. 35 are in set A and 30 are in set B. What are the smallest and largest possible numbers of people in both sets?
Show answer
Smallest = max(0, 35 + 30 − 50) = 15. Largest = min(35, 30) = 30. At the minimum, no one is in neither set. At the maximum, set B lies entirely inside set A, so Either = 35 and Neither = 15.