A body y of a mass 5kg moves with a velocity of 30ms-1 collides with another body x moving opposite direction with velocity of 20ms-1 if both bodies now moves in the directiom of motion of y of a velocity of 10ms-1 calculate the mass of x.

momentum is conserved

(5 * 30) - (x * 20) = (5 + x) * 10

solve for x