In a race that consisted of 3 parts, the cycling part was 12 1/2 miles lonv. The running part of ghe race was 1/4 the distance of the cycling part. The kayaking part of the race was 1/2 the distance of the running part. What was the entire djstance, in miles, of the race?