Let speed of boat in still water be x km/h and speed of stream be y km/h.
Speed Upstream = (x − y) km/h
Speed downstream = (x + y) km/h
According to the question,
Hence, the speed of the stream and that of the boat in still water is 3 km/h and 8 km/h, respectively.