A two-reservoir engine receives Qc = 800 J from the hot reservoir and rejects Qf = 500 J to the cold reservoir during one cycle. What is the work W supplied by this engine, in joules?