A boat can travel 16 miles against a current in the same time it can travel 40 miles with the current. The current flows at 3 mph. What is the rate of the boat in still water?