a cube is painted such that one pair of surfaces is painted brown and the other pair of surfaces is painted orange . the cube is cut in to 64 small cubes of equal size . find how many cubes have both the color brown and orange ?