The total time taken for the whole journey is 9:00-6:00 = <<9-6=3>>3 hours.
The total time taken in minutes is 3*60 = <<3*60=180>>180 minutes.
If it takes 40 minutes to reach the first station, then the rest of the journey takes 180 - 40 = <<180-40=140>>140 minutes.
#### 140