Tommy and Phillip went on a 36 mile canoe trip. The trip up river (going against the current) took 6 hours and the return trip took 3 hours. Find the rate at which they canoed in still water and the rate of the water.