I'll try to give some hints to you>>>
the problem seems simple...
just you have a force that is dependent on y ...
to give the work done , you have to integrate along the path given...
when on x axis direction you just integrate for dx or (Fdx = k/y dx) and x has the two values as lower and upper bounds...here y is constant.
when on vertical axis , you just integrate with respect to y , i.e. Fdy = k/y dy which gives you the ln y for the extremes... you substitute for this...
for the inclined path(if any exists) it is not more than you have now x and y changing so that you are to integrate with respect to them both ... but since you have a line so you can give a relation between x and y and then integrate F.dr rather than Fdx or Fdy ...
the remainder is up to you now,,,
ok???