Both require the same amount of work-work involves a force acting upon an object to cause a displacement. the amount of work done is found by multiplying f*d*cos(theta). the equation can be used for these two motions to find the work.
lifting a 50 kg crate vertically 2 meters
w = (~500 n)*(2 m)*cos(0)
w = ~1000 n
(note: the weight of a 50-kg object is approximately 500 n; it takes 500 n to lift the object up.)
lifting a 25 kg crate vertically 4 meters
w = (~250 n)*(4 m)*cos(0)
w = ~1000 n
(note: the weight of a 25-kg object is approximately 250 n; it takes 250 n to lift the object up.)