David and Owen started jogging at the same time along the route shown. Both did not change their speed throughout. After 35 min, David was at the halfway point and Owen was 510 m behind. David reached the end point 5 minutes before Owen. What was the distance of the route? Express the answer in m.