If A and B are 2 sets such that A ∪ B has 40 elements, A has 18 elements and B has 29 elements, how many elements does A ∩ B have? _______
We know
n(A ∪ B) = n(A) + n(B) - n(A∩B)
We already learnt that
n(A ∪ B) = n(A - B) + n(B - A) + n(A ∩ B) → because A - B, B - A and A ∩ B form disjoint sets, as shown in Venn Diagram,
Areas of A - B, A ∩ B and B - A when combined gives area of A ∪ B.
So, n(A ∪ B) = n(A - B) + n(A ∩ B) + n(B - A)
= n(A - B) + n(A ∩ B) + n(B - A) + [n(A∩ B) - n(A∩ B)]
= [n(A -B) + n(A∩B)] + [n(B -A) + n(A∩B)] - n(A∩B)
= n(A) + n(B) - n(A ∩B)
Hence n(A ∪ B) = n(A) + n(B) - n(A ∩B)
Given n(A ∪ B) = 40
n(A) = 18
n(B) = 29
Hence, n(A ∩B) = n(A) + n(B) - n(A ∪ B)
= 18 + 29 - 40
= 7