A motorboat traveling with the current went 30 mi in 3 h. Against the current, it took 5 h to travel the same distance. Find the rate of the boat in calm water and the rate of the current.