Downstream speed = speed+current speed =X/8
Upstream speed = speed-current speed =X/ 12.
Upstream speed+downstream speed =2* flow.
X/8+X/ 12=20*2
X= 1920
The distance is 1 120km.
Speed =1920/8-20 = 4 km/h.