Initially X-coordinate of the centre of mass is given by Xcom=
m1x1+m2x2
m1+m2
Xcom=
10×5+30×10
10+30
Xcom=
35
4
m Let plank be displaced by distance d then Centre of mass of the system will be at same position as before as there is no external force acting on the system in x direction,