The work is equal to the line integral of
over each line segment.
Parameterize the paths
- from (0, 0, 0) to (2, 0, 0) by
with
, - from (2, 0, 0) to (2, 4, 1) by
with
, - from (2, 4, 1) to (0, 4, 1) by
with
, and - from (0, 4, 1) to (0, 0, 0) by
with 
The work done by
over each segment (call them
) is




Then the total work done by
over the particle's path is 46.
The third picture!! explains it
The slope of the points is -4x
159,159,159,160,161,162,166,167,168,192
Jack bought 1 1/3 pounds and Martin has 2 pounds so Martin has more