Let time second train takes to catch up to 1st train be T
Then the 1st train had traveled for "T + l" hours before the second train caught up to it
We then get the following DISTANCE equation:
60T + 30 = 75T
30 = 75T - 60T
30 = 15T
Time second train took to catch up to 1st train, or