Solution (source code)

= Solution

All size-six subsets are equally likely under uniform <sampling without replacement>. There are $\binom{12}{6}$ subsets in total, and $\binom63\binom63$ contain the required three members from each group. Thus the <hypergeometric distribution> gives
$$
\boxed{P=\frac{\binom63^2}{\binom{12}{6}}
=\frac{400}{924}=\frac{100}{231}\approx0.4329.}
$$