Question 170217
Let x = time (in hours) it takes for train B to catch up to train A
Because of the difference in time the two trains passes a station we have:
x + (1/2) = time train A traveled
.
We use the "distance formula"
d = rt
where
d is distance traveled
r is rate or speed
t is time
.
For train B to catch up:
"distance traveled by train A" = "distance traveled by train B"
40(x + (1/2)) = 44x
multiplying both sides by 2:
40(2x + 1) = 88x
80x + 40 = 88x
40 = 8x
5 hours = x 
.
But wait, the problem wanted "clock" time:
9:40 PM + 5 hours = 2:40 AM