In the example above, 10 N is applied to move the box 2 m.
Work done = 10 × 2 = 20 J
The triangle above will help you to rearrange the equation.
Work done has the same units as energy - joules. This is because energy is the ability to do work. You must have energy to do work. You do not have to do work if you have energy though - potential energy does not do work. Specifically, in the example above, a person could not push the box (and so do work) without energy. Work done is equal to energy transferred, ie work = energy transferred.