Both trains are correct. One of the routes is called a "Slip Route". This means that some coaches of the train are taken through the other route. So, both trains share part of the route. After a junction station, the slip route is diverted through a different track.
Other bloggers, please correct and/or elaborate on my explanation above.