How long would it take a machine to do 5000 joules of work if the power rating of the machine is 100 watts?

A. 0.2 s

B. 10 s

C. 50 s

D. 5 000 s