The simple definition of work is the product of the force applied to the object and the displacement:
W = Fd
W is the work, F is the applied force, and d is the displacement.
Givens:
W = 5.0N-m
F = 25N (the applied force must be at least equal to the weight to lift it)
Plug in the given values and solve for d:
5.0 = 25d
d = 0.20m