For X~ B(n, p), E(X) = np and V(X) = npq
Given that E(X) = 6 and V(X) = 4.2
$\begin{aligned} & \therefore \frac{V(X)}{E(X)}=\frac{4.2}{6} \\ & \therefore \frac{n p q}{n p}=0.7 \\ & \therefore q=0.7 \\ & \therefore p=1-q \\ & =1-0.7\end{aligned}$
= 0.3
∴ E(X) = np
= 6
⇒ n × 0.3 = 6
$\begin{aligned} & \Rightarrow n =\frac{6}{0.3} \\ & =20\end{aligned}$