John went on a bike ride to the store 4 miles away. If it took John 3/10 of an hour to get there and 1/2 of an hour to get back, what was his average rate of speed (miles per hour) for the entire trip?