A cube is painted black on the top and bottom, red on the front and back, and yellow on the left and right faces. It is then cut into 125 identical small cubes.
How many small cubes have only black and red colours (two faces)?
Given: n = 5.
Cubes on the 4 edges where a black face meets a red face, without the corners.
4 × (n − 2) = 4 × 3 = 12.
Answer: 12