Recall your d = rt. distance = rate * time.
let's say the speed of the current is "c".
keeping in mind that, when the boat is going against the current, the boat is not really going at 2kmh, but instead at " 20 - c ", because the current is subtracting speed from it.
Likewise when is going with the current, is going at a speed of " 20 + c ".
if the boat took say "t" hours on the way over, on the way back it took the slack from the whole 8 hours and "t", namely it took " 8 - t " hours.
