here two cars are placed on an aluminium track
so there is no friction on two carts during their motion and hence there is no external force on them
now if there is no external force so momentum is conserved
![m_1v_(1i) + m_2v_(2i) = m_1v_(1f) + m_2v_{2f]](https://img.qammunity.org/2019/formulas/physics/middle-school/rr54zcg72urgzrdyu21m5k7wf538d4jcon.png)
here



now plug in all values in it

divide whole equation by mass 0.4

also be the equation of coefficient of restitution

now we have

now by solving above equations we will have


so after collision speed of two carts is 0 m/s and 1.5 m/s after collision