Please help with the working of this question

Answer:
Principle of conservation of linear momentum is state as provided no external force acts on a system of colliding bodies the total linear momentum of the bodies (in a given direction) remains constant