This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] (Taking $g=9.8$ m s$^{-2}$, which gives the key value.) At constant speed the engine force equals friction: $f=\mu mg=0.04\times500\times9.8=196$ N. Work $=f\,d=196\times4000=7.84\times10^5$ J $=784$ kJ. Answer: 784.