There is point A in the upstream and point B in the downstream of the river of 6km per an hour at the speed of the flow.
It takes three hours for the ship to go up from B to A and two hours go down from A to B.
How much is the distance between A and B?