The idea
In the simple case when a constant force points along a displacement, work equals force times displacement.
Quick revision
A constant 12 N pull moves a trolley 4 m in the direction of the pull. Find the work done by that pull. The force and displacement point in the same direction, so the work is 12 × 4 = 48 J.