In a charity triathlon, Mark ran half the distance and swam a quarter of the distance. When he took a quick break to get a drink of Gatorade, he was just starting to bike the remaining 24 miles. What was the total distance of the race?