Let the boat speed be
x and
the stream speed be y
Given that the taken for the boat to go 24 km upstream and 28 km downstream is 6 hrs
we know that time=distancespeed
Therefore, time taken for the to go upstream is 24x−y and
time taken for the to go downstream is 28x+y
Hence, 24x−y+28x+y=6 ---------(1)
Given that the taken for the boat to go 30 km upstream and 21 km downstream is 6.5 hrs
Therefore, time taken for the to go upstream is 30x−y and
time taken for the to go downstream is 21x+y
Hence, 30x−y+21x+y=6.5 ---------(2)
Let 1x−y=p and 1x+y=q
Therefore, (1) and (2) becomes
24p+28q=6⟹12p+14q=3 -----(3)
and 30p+21q=6.5 -----(4)
eqn (3)*3- eqn (4)*2 we get
36p−60p=9−13
⟹p=424=16 -----(5)
substituting (5) in (3) we get
2+14q=3
⟹q=114 -----(6)
Therefore, x−y=6 and x+y=14
solving the equations we get
x=10 and y=4
Therefore, the boat speed is 10 kmph andthe stream speed is 4 kmph