Boat A, whose speed in still water is 10 km/h, goes downstream from city P to city Q in 3 hours. Boat B goes from city Q to city P in 5 hours. What will be the time taken (in hours) by boat B to travel from city P to city Q, if the speed of the stream is 5 km/h?