Let A = {a1, a2, …, an}. For each ai ∈ A(1 ≤ i ≤ n), we have the following four cases ;
(i) ai ∈ P and ai ∈ Q
(ii) ai ∉ P and ai ∈ Q
(iii) ai ∈ P and ai ∉ Q
(iv) ai ∉ P and ai ∉ Q
Thus, the total number of ways of choosing P and Q is 4n P ∩ Q contains exactly two element in (nC2) (3n – 2).
Hence, the probability of P ∩ Q contains two elements is
(nC2.3n - 2)/4n
Here,
a = 2, b = 2 ⇒ a + b = 4