1. Home
  2. Grade 7-12 Math Review
  3. Sets, Subsets, and Venn Diagrams
Grade 7-12 Math Review · Grade 7 · Quarter 1

Sets, Subsets, and Venn Diagrams

A set is just a collection. The care goes into counting the overlap once.

Find how many

In a class of 40, 25 play basketball, 18 play volleyball, and 9 play both. How many play neither?

Two ways to describe the same set.

FormLooks likeRead as
RosterA = {2, 4, 6, 8}list every element
RuleA = {x | x is an even number, 0 < x < 10}state the condition
n(A) = 4 — the number of elements ∈ means "is in" { } or ∅ is the empty set

Rule form is the only option when the set is large or infinite — you cannot list every prime number, but you can say what makes one.

Subsets, and how many there are.

A set with n elements has 2ⁿ subsets.

B = {a, b, c}

n = 3

2³ = 8 subsets

each element is either in or out

{ }, {a}, {b}, {c}, {a,b}, {a,c}, {b,c}, {a,b,c}

all eight

Do not forget the two odd ones

The empty set and the set itself are both subsets. Leaving them out gives 6 instead of 8. Subsets other than the set itself are called proper subsets, and there are 2ⁿ − 1 of those.

Four operations on sets.

A ∪ BA ∩ B A − BA′
OperationMeansA = {1,2,3,4}, B = {3,4,5}
Union A ∪ Bin either, or both{1,2,3,4,5}
Intersection A ∩ Bin both{3,4}
Difference A − Bin A but not B{1,2}
Complement A′in the universal set but not Aneeds U to be stated

An element is never listed twice in a union. {1,2,3,4,5} has five elements, not seven.

The counting rule behind the opening problem.

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

16 9 9 6 basketball 25 volleyball 18 U = 40

both = 9

fill the middle first

only basketball = 25 − 9 = 16

work outwards

only volleyball = 18 − 9 = 9

same again

neither = 40 − (16 + 9 + 9) = 6

what is left in the box

6 play neither

Always fill the overlap first. Writing 25 into the basketball circle and then trying to fit 9 inside it is where these go wrong.

Running the rules backwards.

Sometimes the overlap is the unknown. Of 52 tricycle drivers, 30 drive in the morning, 29 drive in the afternoon and 6 drive at neither time. How many drive both?

at least one = 52 − 6 = 46

take away the outside region first

46 = 30 + 29 − both

the union rule, with the overlap unknown

both = 59 − 46 = 13

the extra 13 were counted twice

17 + 13 + 16 + 6 = 52 ✓

morning only, both, afternoon only, neither

Forgetting the outside region

Writing 30 + 29 − 52 = 7 treats all 52 drivers as being in a circle. The 6 who drive at neither time are outside both circles, so the union is 46, not 52, and the overlap is 13.

The subset count backwards: a set has 31 proper subsets. How many elements does it have?

2ⁿ − 1 = 31

proper subsets leave out the set itself

2ⁿ = 32 = 2⁵

add the 1 back

n = 5

check: 2⁵ − 1 = 31 ✓

If the count given is "subsets", solve 2ⁿ = the count directly; only "proper subsets" needs the 1 added back.

Three groups: add, take away the pairs, add back the middle.

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

Of 70 learners, 32 like Math, 28 like Science and 25 like English. 10 like Math and Science, 8 like Science and English, 9 like Math and English, and 4 like all three. How many like none of the three?

32 + 28 + 25 = 85

add the three totals

85 − 10 − 8 − 9 = 58

each pair was counted twice

58 + 4 = 62

the middle was taken away three times, so put it back once

none = 70 − 62 = 8

what is left in the box

Check by filling the regions from the middle out: all three 4; the pairs only 6, 4 and 5; Math only 17, Science only 14, English only 12. Then 4 + 6 + 4 + 5 + 17 + 14 + 12 = 62 ✓

Forgetting to add back the middle

Stopping at 85 − 27 = 58 gives 70 − 58 = 12 who like none. The 4 learners who like all three were added three times and then subtracted three times, so they vanished from the count; adding them back gives the right 8.

Variations: no overlap, one set inside the other, and a difference.

The same union rule; these are the cases where the overlap behaves unusually.

Disjoint sets: n(A) = 14, n(B) = 9, and A and B share no element. Find n(A ∪ B).

n(A ∩ B) = 0

disjoint means nothing in common

n(A ∪ B) = 14 + 9 − 0 = 23

nothing to subtract

With no overlap the circles do not touch, and the union is a plain sum.

A subset: B ⊆ A, n(A) = 20 and n(B) = 8. Find n(A ∪ B) and n(A ∩ B).

n(A ∩ B) = n(B) = 8

every element of B is already in A

n(A ∪ B) = 20 + 8 − 8 = 20

the union is just A

The B circle sits inside the A circle, so the union cannot be bigger than A.

A difference: n(A) = 15 and n(A ∩ B) = 6. Find n(A − B).

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

A with the shared part removed

= 15 − 6 = 9

"A only" on the diagram

n(B) is not needed at all: A − B never contains anything from outside A.

Reading a survey question carefully.

"play basketball" 16 + 9 = 25 the whole circle
"play basketball only" 16 the circle minus the overlap
"play at least one" 34 the union
"play exactly one" 16 + 9 = 25 both circles, overlap excluded

"Only" and "at least" are not decoration

Four different numbers come out of the same diagram depending on one word in the question. Underline it before you start counting.

Remember the flow

Draw the box · Fill the overlap · Work outwards by subtracting · Check the parts add to the total

Every region should be filled before you answer anything, even the one outside both circles.

On the exam

Periodical tests and entrance exams almost always give a two- or three-group survey and ask for "neither", "only" or "both", often with the overlap as the unknown. The fastest route is the union rule; the 10-second check is that every region of your diagram adds back to the total in the box.

Now you try

Practice problem

Find how many

Of 60 learners, 34 joined the science club, 28 joined the math club, and 7 joined neither. How many joined both?

Hint: this one runs the rule backwards. Find how many joined at least one club first — that is the union, and everything else follows from it.

The practice set for this lesson

Sets, Subsets, and Venn Diagrams

Every lesson in the Grade 7-12 Math Review has one of these. 30 questions, marked as you answer, with the working shown for each.

Question 1 of 30

If U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} and A = {2, 4, 6, 8, 10}, what is the complement of A?

Question 2 of 30

How many subsets does the set {p, q, r, s, t} have?

Question 3 of 30

If A = {a, e, i, o, u} and B = {a, b, c}, how many elements are in A ∪ B?

Question 4 of 30

In a barangay survey of 40 households, 25 own a bicycle and 18 own a motorcycle. If 7 own both, how many own neither?

Question 5 of 30

Of 30 students, 17 joined basketball and 14 joined volleyball. If 5 joined both, how many joined exactly one sport?

1259BasketballVolleyball

Question 6 of 30

Which of the following is a proper subset of {1, 2, 3}?

Question 7 of 30

In a class of 45 pupils, 20 are in the Math club and 18 are in the Science club. If 12 pupils are in neither club, how many are in both?

Question 8 of 30

If n(A) = 12, n(B) = 9 and n(A ∪ B) = 17, what is n(A ∩ B)?

Question 9 of 30

A set has 63 proper subsets. How many elements does it have?

Question 10 of 30

Among 80 pupils, 40 play basketball, 35 play volleyball and 30 play badminton. If 15 play basketball and volleyball, 12 play volleyball and badminton, 10 play basketball and badminton, and 5 play all three, how many play none of them?

Question 11 of 30

If A = {2, 3, 5, 7} and B = {1, 3, 5, 9}, what is A ∩ B?

Question 12 of 30

How many subsets does the set {1, 2, 3, 4, 5, 6} have?

Question 13 of 30

If A = {a, b, c, d, e} and B = {c, d, e, f}, what is A − B?

Question 14 of 30

Let U = {1, 2, 3, …, 12} and A = {x | x is a multiple of 3 in U}. How many elements does A′ have?

Question 15 of 30

Sets A and B have no element in common. If n(A) = 16 and n(B) = 11, what is n(A ∪ B)?

Question 16 of 30

Which of these is NOT a subset of {2, 4, 6, 8}?

Question 17 of 30

Of 45 pupils, 28 like adobo, 22 like sinigang and 10 like both. How many like neither?

Question 18 of 30

Of 50 workers, 30 commute by jeepney, 26 by tricycle and 12 use both. How many use exactly one of the two?

Question 19 of 30

If n(A) = 20, n(A ∪ B) = 32 and n(A ∩ B) = 6, what is n(B)?

Question 20 of 30

A set has 15 proper subsets. How many elements does it have?

Question 21 of 30

B ⊆ A, n(A) = 30 and n(B) = 12. What is n(A − B)?

Question 22 of 30

Of 70 pupils, 40 joined the scouts, 35 joined the choir and 15 joined both. How many joined at least one of the two?

Question 23 of 30

Of 90 shoppers, 50 bought rice, 40 bought canned goods and 30 bought vegetables. 20 bought rice and canned goods, 15 bought canned goods and vegetables, 12 bought rice and vegetables, and 8 bought all three. How many bought none of the three?

Question 24 of 30

Of 60 learners, 25 like Math, 30 like Science and 20 like English. 10 like Math and Science, 8 like Science and English, 7 like Math and English, and 3 like all three. How many like Math only?

Question 25 of 30

Of 50 students, 22 take Art, 20 take Band and 18 take Chess. 7 take Art and Band, 6 take Band and Chess, 5 take Art and Chess, and 5 take none of the three. How many take all three?

Question 26 of 30

Of 80 people, 50 watched film A and 45 watched film B. The number who watched both is twice the number who watched neither. How many watched both?

Question 27 of 30

If n(A − B) = 12, n(B − A) = 9 and n(A ∪ B) = 30, what is n(A ∩ B)?

Question 28 of 30

A set has 255 proper subsets. How many elements does it have?

Question 29 of 30

Of 100 households, 60 have a TV, 45 a radio and 30 internet. 25 have a TV and radio, 15 a radio and internet, 20 a TV and internet, and 10 have all three. How many have exactly two of the three?

Question 30 of 30

In a universal set U, n(U) = 50, n(A′) = 22, n(B) = 20 and n(A ∩ B) = 8. Find n(A ∪ B).

End of the free lesson

That was 1 of 3 lessons we leave open.

The lesson, its check and its practice set — all of it, exactly as a paying student sees it.

The other 145 lessons in the Grade 7-12 Math Review are free when you enroll in the UPCAT live class (₱2,500, one payment), together with a practice set for every lesson and the full-length mock exams.

See everything in the course · Take the free diagnostic