We know that the momentum is conserved on the system this will mean that:
[tex]p_i=p_f[/tex]where:
[tex]p=mv[/tex]At the beginning the cars are stuck together and we can assume they are at rest; we know that after the explosion the velocity of the 1 kg car is -2 m/s; then we have:
[tex]\begin{gathered} (1+2)(0)=(1)(-2)+2v \\ 0=-2+2v \\ 2v=2 \\ v=\frac{2}{2} \\ v=1 \end{gathered}[/tex]Therefore, the velocity of the 2 kg car is 1 m/s.