Work is calculated using the formula:
[tex]W=Fd[/tex]
Where:
W=Work
F = Force
d = distance
Now your problem gives you the following:
W=500 Newton-meters
F=100 Newtons
The trick with problem solving is you put in what you know and solve for the unknown.
So using the formula, you can solve for your missing distance:
[tex]W=Fd[/tex]
[tex]500 Newton-meters=(100 Newtons)d[/tex]
To get d, you need to isolate it on one side of the equation. It is beside force, so you need to move the to the other side. Transpose it and use the opposite operation.
[tex]500 Newton-meters=(100 Newtons)d[/tex]
[tex] \frac{500 Newton-meters}{100 Newtons}=d [/tex]
[tex]5 meters=d[/tex]
The books were moved 5 meters.