If A and B are 2 sets such that A U 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 U 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 U B.
So, n(A U 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 U B) = n(A) + n(B) - n(A ∩ B)
Hence n(A U B) = n(A) + n(B) - n(A ∩ B)
Given n(A U B) = 40
n(A) = 18
n(B) = 29
Hence, n(A ∩ B) = n(A) + n(B) - n(A U B)
= 18 + 29 - 40
= 7