We let the church be the reference point of both cars.
Since Jessica passed the church at 8am and was overtook by Andrew's car at 12noon then the time traveled by Jessica is 4 hours.
Finding the total distance traveled by the car you'll have:
rearranging the formula
we know that this same distance was traveled by Andrew before overtaking and that he passed the church at 10am and got to overtake at 12nn which makes the travel time 2hours.
Still using the same formula for velocity, knowing that d=140 you'll have: