A man rows a boat upstream a certain distance and then returns back to the same place. If the time taken by him in going upstream is twice the time taken in rowing downstream, find the ratio of the speed of the boat in still water and the speed of the stream.