Elle, use a reference point say noon. Then you will arrive at 4.30 pm before the 5.00 pm departs. Likewise, the 7.00 am from Boston will have arrived before you depart but you will pass every train departing Boston from 8.00 am to 4.00 pm inclusive, 9.