The speed of the stream = 4 mph.
Let us assume speed of the boat in still water = x mph.
Total speed upstream = (x-4) mph.
Total speed downstream = (x+4) mph.
We know, time, speed and distance relation.
Time = Distance / Speed.
Total time taken upstream = 8 / (x-4)
Total time taken downstream = 16/(x+4).
<em>Time taken upstream = time taken downstream.</em>
Therefore,
8 / (x-4) = 16/(x+4).
On cross multiplication, we get
16(x-4) = 8(x+4).
16x - 64 = 8x +32.
Adding 64 on both sides, we get
16x - 64+64 = 8x +32+64
16x = 8x + 96.
Subtracting 8x from both sides, we get
16x-8x = 8x-8x + 96.
8x = 96.
Dividing both sides by 8, we get
x = 12.
<h3>Therefore, 12 mph is the speed of the boat in still water.</h3>