San Francisco is approximately 60 miles from San Jose. John’s family travelled from San Francisco to San Jose averaging 40 miles per hour, but on the way back, due to heavy traffic, they only averaged 24 miles per hour. What is the average speed of the entire trip, in miles per hour?