A cube is painted yellow on the top and bottom, black on the front and back, and red on the left and right faces. It is then cut into 216 identical small cubes.
How many small cubes have only one face painted, and that face red?
Given: n = 6.
Middle part of the two red faces.
2 × (n − 2)² = 2 × 4² = 32.
Answer: 32