A family drove to a resort at an average speed of 30 mph and later returned over the same road at an average speed of 50 mph. Find the distance to the resort if the total driving time was 8 hours.