The pickup accelerates towards right. The box is sticky to the pickup, thus its acceleration is the same, towards right. Its inertia (force) is oposing the acceleration, thus it is towards left. For the box not to move, it is necessary that the truck acts on it with a force towards right. (The two forces of the truck on box and the box inertia (force) equilibrate themselves).
The work done is the product between the intensity of the force applied F, the amount of the displacement d of the book and the cosine of the angle

between the direction of the force and the direction of the displacement:

In our problem, the student is lifting the book, so he is applying a force directed upward, and the book is moving upward, so F and d are parallel and therefore the angle is zero, so

Therefore, the work done is