A cube 4 units on each side is composed of 64 unit cubes. Two faces of the larger cube that share an edge are painted blue, and the cube is disassembled into 64 unit cubes. Two of the unit cubes are selected uniformly at random. What is the probability that one of two selected unit cubes will have exactly two painted faces while the other unit cube has exactly one painted face?
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}$