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
![m_1 = m_2 = 0.4 kg](https://img.qammunity.org/2019/formulas/physics/middle-school/k3wrhxiqzjuyltiv0d8kxwodfivkbp1r8n.png)
![v_(1i) = 1.5 m/s](https://img.qammunity.org/2019/formulas/physics/middle-school/eye70uqqd940zsi78un69ozsm6bqmftspq.png)
![v_(2i) = 0](https://img.qammunity.org/2019/formulas/physics/middle-school/jabuha9wsl63px7kpdsf831c8sxh6x87tq.png)
now plug in all values in it
![0.4 * 1.5 + 0 = 0.4* v_(1f) + 0.4*v_(2f)](https://img.qammunity.org/2019/formulas/physics/middle-school/ke6fx4nudot3g04e36v03fw2uerwors03b.png)
divide whole equation by mass 0.4
![v_(1f) + v_(2f) = 1.5](https://img.qammunity.org/2019/formulas/physics/middle-school/xbmswpm2mdmshbsd90ojb0s77228nsqfi3.png)
also be the equation of coefficient of restitution
![e = 1 = (v_(2f) - v_(1f))/(v_(1i) - v_(2i))](https://img.qammunity.org/2019/formulas/physics/middle-school/bqtlbas8jc4dprtyfmlzqfr6knafnnwrrj.png)
now we have
![v_(2f) - v_(1f) = 1.5](https://img.qammunity.org/2019/formulas/physics/middle-school/tle1wacfw3n1o3qg2f5ctesh7it2kfgpll.png)
now by solving above equations we will have
![v_(2f) = 1.5 m/s](https://img.qammunity.org/2019/formulas/physics/middle-school/cfftfug4by5fpn2hxnfjfggl0ob2pgr25d.png)
![v_(1f) = 0](https://img.qammunity.org/2019/formulas/physics/middle-school/pgftxbkgzp0m6tmpqnkove3ocjjv98a71c.png)
so after collision speed of two carts is 0 m/s and 1.5 m/s after collision