Let speed of boat = 'x' km/h = 15 km/h and speed of stream = 'y' km/h
Speed upstream = (x+y) km/h
Speed downstream = (x-y) km/h
Speed = Distance
Time
=> Time = Distance
Speed
Let time taken for upstream be t1 = 30 hrs
x-y
Let time taken for downstream be t2 = 30 hrs
x+y
Total time taken = t1 + t2 = 30 + 30 = 4.5
x+y x-y
=> 30 + 30 = 4.5
15+y 15-y
=> 30(15-y) + 30(15+y) = 4.5
152 - y2
=> 30{ (15-y) + (15+y) } = 4.5(225 - y2)
=> 30(15 - y + 15 + y) = 4.5(225 - y2)
=> 30 x 30 = 4.5(225 - y2)
=> 900 x 10 = 45(225 - y2)
=> 225 - y2 = 9000/45
=> 225 - y2 = 200
=> y2 = 25
=> y = ± 5 km/h
Speed cannot be in negative,
=> y = 5 km/h
∴ Speed of stream = 5 km/h
Hope this helps!