

Let the speed of the boat in still water = u km/hr
Given, speed of the stream = 4 km/hr
Now, upstream = u - 4 km
We know that,
Distance = speed * time
=> 24 = (u - 4) * 3
=> u - 4 = 24/3
=> u - 4 = 8
=> u = 8 + 4
=> u = 12 km/hr
So, the speed of the boat in still water is 12 km/hr
