Given:
The mass of car A is

The mass of car B is,

The speed of car A is

to the left
To find:
The velocity of car B in cm/s
Step-by-step explanation:
Before the thread is burned, the total momentum of the two carts is zero, as nothing moves. So, after the thread releases the carts, the total momentum must still be zero as per the conservation of linear momentum.
So, we write,

Hence, the cart B goes in the opposite direction at a speed of 9 cm/s