A worker moves a 30 $\mathrm{kg}$ box by pulling on it with a rope that makes a $60^{\circ}$ angle with the horizontal. If the worker applies a force of 40 $\mathrm{N}$ and pulls the box over a distance of $20 \mathrm{m},$ how much work did the worker do?
(A) 100 $\mathrm{J}$
(B) 200 $\mathrm{J}$
(C) 400 $\mathrm{J}$
(D) 800 $\mathrm{J}$