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