A very typical catchup-travel type problem. Basic constant travel rate rule is RT=D. Time is best handled in quantities, and not as points on a time-line, but this is only to make handling easier values for analyzing and solving the problem.
Only a data table is presented here. You do the rest.
SPEEDS TIME DISTANCE
FIRST r t+2 d
SECOND r+30 t d
Excuse me. I left something out.
.
Here is an adjustment to the data table, using according to the meaning of the time points in the description:
SPEEDS TIME DISTANCE
FIRST r 5 d
SECOND r+30 3 d
NOW you can do the rest.