recommend you research perfectly inelastic collisions ...
A boxcar traveling at 10 m/s approaches a string of 5 identical boxcars sitting stationary on the track. The moving boxcar collides and links with the stationary cars and they all move off together along the track. What is the final speed of the cars immediately after the collision? (You may take the mass of each boxcar to be 18,537 kg.)
Lost