Set logic, Venn & inclusion-exclusion drills

Count members of overlapping groups using 'both'/'neither' reasoning, Venn diagrams, or the inclusion-exclusion principle (e.g., surveys of students who have cats and/or dogs).

Free, timed SHSAT practice sets on set logic, venn & inclusion-exclusionβ€” every question includes a full worked explanation, and there's no account required.

Loading questions…

How to solve Venn diagram (both/neither) problems

The key idea is inclusion-exclusion:

\(\text{at least one} = A + B - \text{both}\)

You subtract "both" because those people are counted once in A and again in B.

Example: of 60 students, 30 have a dog, 20 have a cat, and 8 have both.

If the question gives "neither" and asks for "both", work backward: at least one \(= 60 - \text{neither}\), then both \(= A + B - \text{at least one}\).

Drawing two overlapping circles and filling in the middle first makes every part clear. Common traps: adding A and B without subtracting the overlap, and giving "at least one" when the question asks for "neither".

Worked examples

Example 1.
In a survey of 70 employees, 20 own a dog, 23 own a cat, and 6 own both a dog and a cat. How many of the 70 employees own neither a dog nor a cat?
Show answer and explanation
Answer:
D

Owners of at least one: \(20 + 23 - 6 = 37\). Neither: \(70 - 37 = 33\). (Not adding back the 6 who own both (\(70 - 20 - 23\)) gives 27. Subtracting only the dog owners (\(70 - 20\)) gives 50. Stopping at the number who own at least one gives 37.)

Example 2.
In a survey of 74 readers, 34 own a hamster, 29 own a cat, and 9 own both a hamster and a cat. How many own a hamster but NOT a cat?
Show answer and explanation
Answer:
D

Take the hamster owners and remove those who own both: \(34 - 9 = 25\). (Not removing the 9 who own both gives 34. Finding the number who own a cat but not a hamster (\(29 - 9\)) gives 20. Counting everyone without a cat (\(74 - 29\)), which also counts those who own neither, gives 45.)

Example 3.
In a survey of 51 shoppers, 24 own a dog, 34 own a cat, and 4 own neither. How many own both a dog and a cat?
Show answer and explanation
Answer:
C

Owners of at least one: \(51 - 4 = 47\). Both: \(24 + 34 - 47 = 11\). (Forgetting the 4 who own neither (\(24 + 34 - 51\)) gives 7. Stopping at the number who own at least one gives 47. Stopping at the number who own only a cat (\(47 - 24\)) gives 23.)