Jeremy and Ahmad started jogging at the same time along the route shown. Both did not change their speed throughout. After 25 min, Jeremy was at the halfway point and Ahmad was 350 m behind. Jeremy reached the end point 7 minutes before Ahmad. What was the distance of the route? Express the answer in m.