A boat covered 20 km downstream and 28 km upstream. The speed of the boat in still water is 7 km/hr and the speed of the stream is 3 km/hr. Find the time taken to complete the whole journey.