Bảng phân phối xác suất của $X$:
$P(X)$ $\dfrac{6}{9}=\dfrac{2}{3}$ $\dfrac{3}{9}.\dfrac{6}{8}=\dfrac{1}{4}$ $\dfrac{3}{9}.\dfrac{2}{8}.\dfrac{6}{7}=\dfrac{1}{14}$ $\dfrac{3}{9}.\dfrac{2}{8}.\dfrac{1}{7}=\dfrac{1}{84}$
Vậy $E(X)=1.\dfrac{2}{3}+2.\dfrac{1}{4}+3.\dfrac{1}{14}+4.\dfrac{1}{84}=\dfrac{10}{7}$