The work W done by the boy is
W = F S.
F is the force and F is the component of this force in the direction of the displacement S.
Now, F cos(60) = 2 * 0.5 = 1 N.
Since, S = 5m, the work done is W = 1*5 = 5 joules.