
Initial position of centre of mass: xCM=4010(0)+30×x=43x
Final position of the centre of mass: x′CM=4010(6)+30×(x−y)=46+3(x−y)
As position of centre of mass remains same,
xCM=x′CM⇒43x=46+3(x−y)⇒3x=6+3x−3y ⇒y=2cm
Alternate method, ΔxCOM=(m1+m2)m1Δx1+m2Δx2⇒0=10×6+30y⇒y=−2cm