Let the speed of the boat in still water be x km/hr and the speed of the stream but ykm/hr. Then
Speed upstream =(x−y)km/hr
Speed downstream =(x+y)km/hr
Now, Time taken to cover 32 km upstream =32x−yhrs
Time taken to cover 36 km downstream =36x+yhrs
But, total time of journey is 7 hours.
∴32x−y+36x+y=7.. (i)
Time taken to cover 40 km upstream =40x−y
Time taken to cover 48 km downstream =48x+y
In this case, total time of journey is given to be 9 hours.
∴40x−y+48x+y=9(ii)
Putting 1x−y=u and 1x+y=v in equations (i) and (ii), we get 32u+ 36v=7⇒32u−36v−7=0..(iii)
40u+48v=9⇒40u−48v−9=0.. (iv)
Solving these equations by cross-multiplication, we get
u36×−9−48×−7=−v32×−9−40×−7=132×48−40×36⇒u−324+336=−v−288+280=11536−1440⇒u12=v8=196⇒u=1296 and v=896
⇒u=18 and v=112
Now, u=18⇒1x−y=18⇒x−y=8. . (v)
and, v=112⇒1x+y=112⇒x+y=12. (vi)
Solving equations (v) and (vi), we get x=10 and y=2
Hence, Speed of the boat in still water =10 km/hr and Speed of the stream =2 km/hr.