Inclusion-Exclusion with Three Sets: Finding Exact Overlaps
What This Problem Teaches
Visualizing the Problem
This Venn diagram shows three overlapping sets. We know the total size of each circle and the center intersection, but we need to find how many houses fall in exactly the two-way overlaps (excluding the center).
Solution: Method 1 — Inclusion-Exclusion with Variables
Step 1 — Convert percentages to house counts
First, let's convert the given percentages into actual numbers of houses:
Sunporch: 50% of 150 = 0.5 × 150 = 75 houses
Swimming pool: 30% of 150 = 0.3 × 150 = 45 houses
Step 2 — Set up the inclusion-exclusion formula
Let's define our variables. We know that 5 houses have none of the amenities, so 145 houses have at least one amenity. The inclusion-exclusion principle states:
Substituting our known values:
Step 3 — Express overlaps in terms of "exactly two"
Here's the key insight: each two-way intersection consists of houses with exactly those two amenities PLUS the houses with all three. If we let x be the number of houses with exactly two amenities, then:
|A ∩ C| = (houses with exactly A and C) + (houses with all three)
|B ∩ C| = (houses with exactly B and C) + (houses with all three)
So the sum of all two-way intersections is:
Step 4 — Solve for exactly two amenities
Substituting back into our inclusion-exclusion equation:
145 = 200 - x
x = 200 - 145 = 55
Step 4 (Corrected) — Solve for exactly two amenities
Let me recalculate more carefully. From the inclusion-exclusion formula:
145 = 210 - x - 15 + 5
145 = 200 - x
x = 200 - 145 = 55
But wait—this gives us the sum of all two-way overlaps excluding the center. We need to be more careful about what x represents.
Let me restart with clearer notation. Let e = exactly two amenities (what we want to find). The sum of the two-way intersections is:
From inclusion-exclusion:
145 = 200 - e
e = 55
Solution: Method 2 — Region-by-Region Analysis
Step 1 — Define variables for each Venn diagram region
Let's break down the Venn diagram into seven distinct regions plus the "none" category:
a= houses with only air-conditioningb= houses with only sunporchc= houses with only swimming poold= houses with exactly A and B (no pool)e= houses with exactly A and C (no sunporch)f= houses with exactly B and C (no A/C)g= houses with all three = 5- None = 5
Step 2 — Set up system of equations
We can write four equations based on what we know:
A/C total: a + d + e + 5 = 90
Sunporch total: b + d + f + 5 = 75
Pool total: c + e + f + 5 = 45
Step 3 — Simplify the system
From the first equation: a + b + c + d + e + f = 140
From the other equations:
b + d + f = 70
c + e + f = 40
Step 4 — Solve for exactly two amenities
Adding the last three equations:
a + b + c + 2d + 2e + 2f = 195
(a + b + c + d + e + f) + (d + e + f) = 195
140 + (d + e + f) = 195
d + e + f = 55
The quantity d + e + f represents exactly the houses with exactly two amenities.
Verification
Let's verify our answer by checking that all regions sum to 150 houses total.
We found that 55 houses have exactly two amenities. Now we can find how many have exactly one:
Houses with exactly one amenity: 145 - 55 - 5 = 85
Let's verify this makes sense with our original totals:
From exactly one: 85 × 1 = 85
From exactly two: 55 × 2 = 110
From exactly three: 5 × 3 = 15
Total: 85 + 110 + 15 = 210 ✓
Perfect! Our answer checks out.
Where Students Go Wrong
Some students think: "60% + 50% + 30% = 140%, so 140% of 150 = 210 houses have amenities." This is wrong because it counts overlapping houses multiple times. The inclusion-exclusion principle exists precisely to correct this over-counting.
Students might calculate that 80 houses have at least two amenities and report this as the final answer. But "at least two" includes houses with all three amenities, while "exactly two" excludes them. Always subtract the triple intersection: 80 - 5 = 75.
Some students use 150 as the total for houses with at least one amenity, forgetting that 5 houses have none. The correct total for |A ∪ B ∪ C| is 150 - 5 = 145.
When using inclusion-exclusion, |A ∩ B| means all houses with both A and B, including those with C as well. It's not just houses with exactly A and B. This is why each two-way intersection includes houses with all three amenities.
The Pattern Behind This
This problem demonstrates the inclusion-exclusion principle for three sets. The general formula is:
The key insight is understanding the relationship between set intersections and the "exactly k" quantities:
Sum of individual sets = (exactly one) + 2 × (exactly two) + 3 × (exactly three)
For any three-set problem where you know the individual set sizes, the triple intersection, and the total with none, you can always solve for the "exactly two" quantity using this approach.
How to Spot This Problem Type
Look for these tell-tale signs that signal a three-set inclusion-exclusion problem:
- "What percent have..." followed by multiple overlapping categories
- "Exactly two of the three" or similar language about specific overlap counts
- Given percentages that add up to more than 100%
- "None of the above" or "all three" as additional constraints
- Survey data about preferences, characteristics, or memberships
Real Applications
Three-set inclusion-exclusion appears frequently in real-world analysis:
- Market Research: Understanding customer overlap between product lines, subscription services, or demographic segments
- Medical Diagnosis: Tracking patients with multiple comorbidities or risk factors across different conditions
- Quality Control: Analyzing defect patterns when products can fail in multiple independent ways
- Survey Analysis: Processing responses where participants can select multiple options from overlapping categories
What If?
We still have 90 houses with A/C, 75 with sunporch, 45 with pool, and 5 with none. But now 8 houses have all three amenities.
Let e = exactly two amenities. The sum of two-way intersections is e + 3(8) = e + 24.
145 = 90 + 75 + 45 - (e + 24) + 8145 = 210 - e - 24 + 8145 = 194 - ee = 49
49 houses have exactly two amenities.
Let N = houses with none. Then houses with at least one = 200 - N.
Sum of two-way intersections = 45 + 3(3) = 45 + 9 = 54
200 - N = 120 + 80 + 50 - 54 + 3200 - N = 250 - 54 + 3200 - N = 199
N = 200 - 199 = 1
1 house has none of these amenities.
Total amenity instances: 90 + 75 + 45 + 60 = 270
Houses with at least one amenity: 150 - 8 = 142
Let x₁ = exactly 1, x₃ = exactly 3.x₁ + 48 + x₃ + 2 = 142 (total houses)x₁ + 2(48) + 3x₃ + 4(2) = 270 (total instances)
From first equation: x₁ = 92 - x₃
Substituting: (92 - x₃) + 96 + 3x₃ + 8 = 270196 + 2x₃ = 270x₃ = 37
37 houses have exactly three amenities.
The triple intersection is limited by the smallest individual set: pool with 45 houses. So maximum |A ∩ B ∩ C| = 45.
If 45 houses have all three amenities, then:
Only A/C: 90 - 45 = 45
Only sunporch: 75 - 45 = 30
Only pool: 45 - 45 = 0
Total houses with amenities: 45 + 30 + 0 + \text{exactly two} + 45 = 145
Exactly two: 145 - 120 = 25
Sum of two-way intersections: 25 + 3(45) = 160
Check: 145 = 90 + 75 + 45 - 160 + 45 = 95 ✗
This doesn't work! Let me recalculate the maximum systematically using inclusion-exclusion.
From inclusion-exclusion: e = 200 - 145 - 3t = 55 - 3t where t is the triple intersection.
To minimize e, we maximize t. The constraint is t ≤ 45 and e ≥ 0.
When t = 45: e = 55 - 3(45) = -80 (impossible)
We need e ≥ 0, so 55 - 3t ≥ 0, thus t ≤ 18.33
Maximum integer value: t = 18, giving e = 55 - 54 = 1
The minimum number of houses with exactly two amenities is 1.
Frequently Asked Questions
2026-05-30