Explanation :
It is given that :
Mass of car A,

Mass of car B,

Let, the speed of car A and B after collision are
and
respectively and
and
be their initial velocities.
We know that in head on collision, momentum remains conserved.
so,

so,


so,

Hence, the speed of car B is
