Explanation :
It is given that :
Mass of car A, [tex]m_A=1000\ Kg[/tex]
Mass of car B, [tex]m_B=2000\ Kg[/tex]
Let, the speed of car A and B after collision are [tex]v_A[/tex] and [tex]v_B[/tex] respectively and [tex]u_A[/tex] and [tex]u_B[/tex] be their initial velocities.
We know that in head on collision, momentum remains conserved.
so, [tex]m_Au_A+m_Bu_B=m_Av_A+m_Bv_B[/tex]
so, [tex]v_B=\dfrac{m_Au_A+m_Bu_B-m_Av_A}{m_B}[/tex][tex]v_B=\dfrac{1000u_A+2000u_B-1000v_A}{2000}[/tex]
so, [tex]v_B=u_A+2u_B-v_A[/tex]
Hence, the speed of car B is [tex]v_B=u_A+2u_B-v_A[/tex]