Let the two masses m1 and m2 are kept along a vertical line.
It is given that:
m1 = 10 kg
m2 = 30 kg
First block is raised through a height of 7 cm.
Thus, to raise the centre of mass by 1 cm:
Therefore, the 30 kg block (m2) should be moved by 1 cm downwards in order to raise the centre of mass by 1 cm.