12km, of course, Motor Daddy. But the point is, it travelled through 12km of water.
Try looking at it this way:-
It travelled upstream at a speed, relative to the bank of 8-3.27 = 4.73 km/hr. So it took 5/4.73 = 1.06hrs to go up. During this time it had to travel through 1.06 x 8 = 8.48km of water.
It then turned round and went downstream. This time it travelled, relative to the bank, at 8+3.27 = 11.27 km/hr. So it took 5/11.27 = 0.44hrs to return. It travelled through 8 x 0.44 = 3.52km of water during this time.
Total time was thus 1.06 + 0.44 = 1.5hrs
And the total distance through the water it travelled was 8.48 + 3.52 = 12km.
Hey presto.
To be fair, if you had sculled on the Thames for 40 years as I have, I think you would be able to visualise this more easily. The stronger the current, the longer the time required for a return trip, because the time spent going against the current is always longer than the time spent going with it. (In the limiting case, when the current is the same as the boat speed it takes an infinitely long time to get upstream, because you are sculling on the spot, relative to the bank! It's a horrible feeling.)