Let the speed of the boat in still water be x km/h and the speed of the stream be y km/h.
Then, we have:
Speed upstream = (x − y)km/hr
Speed downstream = (x + y) km/hr
Time taken to cover 12 km upstream = hrs
Time taken to cover 40 km downstream = hrs
Total time taken = 8 hrs
∴ + = 8 ....(i)
Again, we have:
Time taken to cover 16 km upstream = hrs
Time taken to cover 32 km downstream = hrs
Total time taken = 8 hrs
∴ + = 8 ....(ii)
Putting and in (i) and (ii), we get:
12u + 40v = 8
3u + 10v = 2 ....(a)
And, 16u + 32v = 8
⇒ 2u + 4v = 1 ....(b)
On multiplying (a) by 4 and (b) by 10, we get:
12u + 40v = 8 ....(iii)
And, 20u + 40v = 10 ....(iv)
On subtracting (iii) from (iv), we get:
8u = 2
⇒
On substituting in (iii), we get:
40v = 5
⇒
Now, we have:
⇒ ....(v)
⇒ ....(vi)
On adding (v) and (vi), we get:
2x = 12
⇒ x = 6
On substituting x = 6 in (v), we get:
6 − y = 4
⇒ y = (6 − 4) = 2
∴ Speed of the boat in still water = 6 km/h
And, speed of the stream = 2 km/h