Correct option (B)
Explanation:
The system of two given particles of masses m1 and m2 are shown in figure. Initially the centre of mass

Note: If both the masses are equal i.e., m1 = m2 , then second mass will move a distance equal to the distance at which first mass is being displaced.