The towboat moves the ship by a distance

so the work done by the towboat to move the ship is the product between the force applied and this distance:

The time taken for this process is

So the power used by the twoboat is the ratio between the work done and the time taken
