The correct option is B 16
All the six faces of the cube is painted. Two opposite of them are in green and other two opposite are painted black.
From every green colour painted face, there will be four such cubes which have only one face painted green. Similarly, other face painted green an black will have four such cubes.
Hence, total number of such cubes painted either green or black on one face is 16.