The denominater is C(64,2)=2016. There are 4 ways to choose a unit cube with 2 painted faces and 24 ways to choose a unit cube with only one painted face, which means probability of choosing one unit cube with 2 painted faces and one unit cube with one painted face is $\frac{24\cdot4}{2016}=\frac{1}{18}$
.