Answer : Height, s = 4 m
Explanation :
It is given that,
Work done, W = 40 J
Force applied on the box from the floor to a shelf,

We know that the work done is defined as the force applied on an object to produce a displacement on it.
Mathematically, it is written as :

s is the height of the shelf



So, the height of the shelf is 4 m.
Hence, this is the required solution.