Let, speed of stream be x km/h
Speed of boat = 15 km/h
Distance from each side = 30 km
We know that time taken
Total speed of the boat while going upstream km/h
Time taken to go upstream hrs
Total speed of boat while going downstream km/h
Time taken to go downstream hrs
Total time of the journey hrs = 4.5 hrs
Ignore the negative value.
So, the speed of the stream = x = 5 km/h