Using conservation of energy law:-
∑ work in = ∑ work out
and work= force* displacement
so when we wanted to move a 100kg a distance of 1m
we multiplied 100*1 = work out
so work in should be equal to 100*g Joules, where g is the acceleration due to gravity.
so workout = 100*g = 25*g *x (divide both sides by 25*g)
x=4m
by the same way:-
------------------------
work in = 100kg * 2m * g (m/

)= work out
so work out = 25*x*g = 200* g (divide both sides by 25*g)
x=8m