I don't know if you meant

or

I'll assume the first force is correct.
The object in question undergoes a total displacement of

Then the work <em>W</em> done by
along this displacement is

Another approach using calculus (it's overkill since
is constant, but it doesn't hurt to check our answer): parameterize the line segment by

with 0 ≤ <em>t</em> ≤ 1.
Then the work <em>W</em> done by
along the given path is equal to the line integral,
