A boat can go 20 km upstream and 30 km downstream in 3 hrs. It can go 20 downstream and 10km upstream in 1 hrs 40 min . Find the speed of the boat in still water and speed of the stream.