The correct option is A 8
As per the problem, the cube is divided into 125 equal small cubes. That means, the cube is being cut into 5 slices horizontally and vertically resulting in 5x(5x5) smaller cubes.
Total numbers of cubes having (Blue & Red) + (Blue + Green) = 10. But, out of these 10, two cubes would have yellow color as well on one of the faces. So, total number of cubes with (Blue & Red) + (Blue + Green) = 10 - 2 = 8.
Hence, correct answer is (A).