A rowing team rowing with the current traveled 36 km in 3 h. Rowing against the current, the team rowed 12 km in the same amount of time. Find the rate of the rowing team in calm water and the rate of the current.