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