Answer:
As stated, the momentum of the system is conserved during the collision (even the kinetic energy is not - some energy is lost to heat, deformation, etc)
M1 V1 = M2 V2 expresses momentum conservation
150 kg-m/s = (40 + X) kg-m/s
X = 110 kg-m/s is the new momentum of the front car
More specifically,
M1 V1 + M2 V2 = M1 V1' + M2 V2'