Distance = rate * time
r= rate of the boat in still water
c= rate of current
Upstream = r - c
Downstream= r+c
Upstream
r-c = 128/4 = 32
r-c= 32 (a)
Downstream
r+c=128/2=64
r+c=64 (b)
Add both equations (a)+(b)
r-c=32
+
r+c= 64
_______
2r= 96
r= 96/2
r=48 km/h
Substitute r in (b)
48+c =64
c= 64-48
c= 16km/h