Philip rides his bike on a road with rolling hills and no flat stretches. He rides uphill at a constant rate of 5 mph and rides downhill at a constant rate of 15 mph. He starts and ends his 40 mile, round trip ride at the same place. What was his average speed for the entire trip?