⇒ Let
x be the speed of the stream.
⇒ Speed of the boat in still water is 8km/hr
⇒ The speed of the boat in upstream is 8−xkm/hr
⇒ The speed of the boat in downstream is 8+xkm/hr
⇒ The time taken by the boat to cover 15km=158−xhr
⇒ The time taken by the boat to cover 22km=228+xhr
According to the question,
⇒ 158−x+228+x=5
⇒ 15(8+x)+22(8−x)=5(8−x)(8+x)
⇒ 120+15x+176−22x=5(64−x2)
⇒ 296−7x=320−5x2
⇒ 5x2−7x−24=0
⇒ 5x2−15x+8x−24=0
⇒ 5x(x−3)+8(x−3)=0
⇒ (x−3)(5x+8)=0
⇒ x−3=0 and 5x+8=0
⇒ x=3 and x=−85
Speed cannot be negative.
∴ The speed of the stream is 3km/hr