Dear student,
The displacement of plank will depend on the masses of persons A and B. The concept used here is that since there is no external force ,the displacement of the centre of the mass of the system will be zero.Thus, if both persons have same mass then displacement of the plank will be zero.
Regards