Given,
ξ = {x | x ∈ W, x < 20}
∴ ξ = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19}
A = {factors of 18} = {1, 2, 3, 6, 9, 18}
B = {multiples of 3} = {0, 3, 6, 9, 12, 15, 18}
(i) A ∪ B is the set of all the elements which are either in A or in B or in both.
Hence, A ∪ B = {0, 1, 2, 3, 6, 9, 12, 15, 18}.
(ii) A ∩ B is the set of all the elements which are common to both A and B.
Hence, A ∩ B = {3, 6, 9, 18}.
(iii) (A ∪ B)′ is the set of all the elements of ξ which are not in A ∪ B.
Hence, (A ∪ B)′ = {4, 5, 7, 8, 10, 11, 13, 14, 16, 17, 19}.
Verification :
n(A ∪ B) = 9, n(A) = 6, n(B) = 7 and n(A ∩ B) = 4
$$\begin{aligned}\Rightarrow n(A) + n(B) - n(A \cap B) = 6 + 7 - 4\\[1em] \Rightarrow n(A) + n(B) - n(A \cap B) = 9\\[1em] \Rightarrow n(A) + n(B) - n(A \cap B) = n(A \cup B)\end{aligned}$$
Hence, n(A ∪ B) = n(A) + n(B) - n(A ∩ B) is verified.