the collision is elastic as the carts rebound off each other.
by conservation of momentum, the small mass will have a larger change in velocity.
so the ans is The small cart changes its velocity the most.
Answer
we know,

where
E = energy
h = planks constant
λ = wavelength
from the above equation, we can see that energy is inversely proportional to wavelength.

that is why
Violet color light has low wavelength but the energy of Violet light is very high whereas red light has low energy and high wavelength.