Here the force donot accelerates the body
20N is required to keep the body in uniform velocity
so 20N force is acting oposit to the motion of the body by the friction
so for a displacement of 2m work done by frictional force=2×20=40
pls try to understand the concept and like if u satisfied