If a man travels p hours at an average rate of q miles per hour, and then r hours at an average rate of s miles per hour, what is his overall average rate of speed?