To solve the problem, we need to find the speed of the stream given that the speed of the boat in still water is 5 km/hr. The problem states that it takes thrice as much time to travel 20 km upstream as it does to travel the same distance downstream.
Let the speed of the stream be \(x\) km/hr.
\(S_{\text{down}} = 5 + x\) km/hr.
\(S_{\text{up}} = 5 - x\) km/hr.
\(\frac{20}{5 - x} = 3 \times \frac{20}{5 + x}\)
Cross-multiply to eliminate the fractions:
\(20 \times (5 + x) = 3 \times 20 \times (5 - x)\)
Expand both sides:
\(100 + 20x = 300 - 60x\)
\(20x + 60x = 300 - 100\)
\(80x = 200\)
\(x = \frac{200}{80}\)
\(x = 2.5\) km/hr
Therefore, the speed of the stream is 2.5 km/hr.