Train B will catch up to train A at 2:47am
If they are going in opposite directions, train B will not catch up train A - it passed it at 1:25am + 90 x 12 ÷ (90 + 80) minutes = 1:25am + 66/17 minutes which is just after 1:31 am If they are going the same way at constant speed with enough track, train B will catch up train A once it has covered the distance Train A has covered in the time between 1:25 am and 1:37 am at the difference between their speeds; this means it will catch it up at 1:37 am + 80 x 12 ÷ (90 - 80) minutes = 1:37 am + 96 minutes = 3:13 am.