p-4=-9+p

At 8:00 am, a freight train passes a station and begins traveling east at an average speed of 40 miles per hour. Half an hour later, a passenger train passes the same station and begins traveling east on a parallel track at an average speed of 50 miles per hour. At what time will the passenger train catch up with the freight train?