The correct option is D 24
A cube of 8'' size is cut into cubes of 2'' size. Number of small cubes thus formed will be 64.
There will be 2 such cubes along each edge which have 2 adjacent faces painted. Since, there are 12 such edges of the bigger cube, the total number of such cubes are 24.