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