Given,
The mass of the truck, M=3000 kg
The mass of the car, m=1000 kg
The velocity of the truck before the collision, u=10 m/s
The velocity of the car after the collision, v₁=15 m/s
From the law of conservation of momentum, the total momentum of the car and the truck before the collision is equal to their total momentum after the collision.
Thus,

Where v₂ is the velocity of the truck after the collision.
On rearranging the above equation,

On substituting the known values,

Therefore the velocity of the truck after it hits the car is 5 m/s