A 12kg red ball travels with a velocity of 7m/s towards a 8kg blue ball that is traveling a speed of 10m/s in the opposite direction. What is the velocity of the blue ball after collision if the velocity of the red ball after collision is 5m/s ?(The balls have changed direction.)

Solution:
Set OX as positive direction.
We are given:
mred=12kgmblue=8kgvred1=7smvblue1=−10smvred2=−5sm
According to the linear momentum conservation principle:
mred∗vred1+mblue∗vblue1=mred∗vred2+mblue∗vblue2
Thus:
vblue2=mbluemred∗vred1+mblue∗vblue1−mred∗vred2
Calculating:
vblue2=812∗7+8∗(−10)−12∗(−5)=8sm
Answer: 8 m/s