distance = speed * time
you know distance was the same in each and that the sum of the times is 1 hour
these are the equations that you initially know:
since the first two both equal d you can set them equal to each other:
[math]
45 * t_{morn} = 30 * t_{eve}
[math]
now we can solve for one t and substitute into the third equation and solve for the other
now we can substitute into the 2nd equation to solve for d
Let me know if you have any questions.