The correct option is D 20
Leaving the 4 central cubes on each of the blue surface and 8 cubes at the corners of the block all the rest have two faces painted Thus the cubes having only two faces painted are 8 cubes on each of the blue surfaces and 4 larger cubes i.e. there are (8 x 2) + 4 = 20 such cubes