find the work required to pull up the anchor if the cable weighs 20 lb/ft in water

so, each slice of thickness dx feet of cable weighs

20 dx

so, if n feet are pulled up, starting at depth a, the work (force * distance) is

∫[a,a-n] 20 dx

You seem to have left out some info.