The conservation of momentum, means that before and after the collision, the momentum totals are the same...
original momentum 5 kg * 25 m/s = 125 kg -m/s
After collision 5 *20 = 100 kg-m/s
this means that the 1 kg object has the remainder of the momentum and is traveling at 25 m/s