To solve this, we need to compare each graph with other graphs.
Let’s start with graph A. Compare A with B, C, D and E. A has 2 bars different than B, 3 bars different than C, 2 bars different than D and 4 bars different than E.
Since the graphs cannot have more than 2 different bars, A, C and E cannot be the correct graphs.
Comparing B with E, 4 bars are different. Hence B cannot be the correct one either.
This leaves us with D. If we compare D with the other options, we will see that:
D has 2 different than A, 2 different than B, 2 different than C and 2 different than E.
D is the only graph which has no more than 2 different bars when compared to the other options.