Running at the average speed of 400m/min, Drake dashed to the end of the course. He then walked back to his starting position at an average rate of 80m/min. How long was the course if it took him 6 minutes to make the dash and walk back?

since time = distance/speed,

d/400 + d/80 = 6