The correct option is B 24
So on a painted side all border boxes will have more than one side painted . that means in a surface middle 4 boxes will have only 1 side painted. and we have 6 surfaces.
Therefore, the answer is=4∗6=24
Hence, option 'B' is correct.