```
Work = Force × Distance
Given that the force applied is 20 newtons and the distance moved is 40 meters, we can calculate the work done as:
Work = 20 N × 40 m = 800 Nm
Therefore, the work done in moving the cart is 800 joules.