Answer:
The answer is given below
Step-by-step explanation:
u is the initial velocity, v is the final velocity. Given that:

a)
The final velocity of cart 1 after collision is given as:

The final velocity of cart 2 after collision is given as:

b) Using the law of conservation of energy:
