Let the speed of the boast in still water be x km/hr. Let the speed of the stream by y km/hr. Down-stream, the relative speed of the boat is (x+y)km/hr and up-stream its relative speed is x−y km/hr. Using distance =speed×time, we obtain
300=(x+y)×5, and 150=(x−y)×5.
Thus we have two equations
x+y=60,..........(1)
x−y=30.........(2)
Adding these two, we get 2x=90 or x=45. Hence y=60−x=60−45=15.
Therefore the speed of the boat in still water is 45 km/hr. The speed of the steam is 15 km/hr.