Question 17All faces of a rectangular block are painted green, then it is cut into unit cubes of volume 1 cm$^3$. Seven cubes have no painted faces. How many cubes have exactly two painted faces?