Given that the work done in raising the apple is W = 2 J
Also, the mass of apple is m = 0.180 kg
We have to find the distance traveled by the apple.
As the work done = potential energy.
Work done will be equal to mgh.
Here, g = 9.8 m/s^2 is the acceleration due to gravity.
h is the distance traveled by the apple.
So the distance traveled by the apple will be

Thus, the apple is lifted 1.134 m.