In the morning, Alan drove 100 miles at the rate of 60 miles per hour; in the afternoon, he drove another 100 miles at the rate of 40 miles per hour. What was his average rate of speed, in miles per hour, for the day?