To solve this problem, you'll want to come up with an algebraic equation that represents how far both Molly & Mark have travelled. Once the distance they have traveled is the same, Mark will have caught up with Molly. We want to find out how many hours Molly had to drive to reach that distance, and we know that the time Molly has been driving is 2 hours longer than the time Mark has been driving.
I'd use the following equation.
x = number of hours Mark has been driving
45x = 27(x+2)
This equation shows the distance Mark has traveled (driving 45 miles per hour for x hours) equal to the distance Molly has traveled (driving 27 miles per hour for x+2 hours). Solving for x will give you the number of hours Mark traveled, but remember to add the 2 hours to that, because we know that Mark left after Molly had already been driving for two hours.