Answer
$4$ pm
Work Step by Step
We know that the distance covered is the product of the time passed and the average speed. Thus our equation according to the exercise is:
$45t+40(t-0.25)=160\\40t+45t-10=160\\85t=170\\t=2$
Notice that we set the right side to $160$ because they will meet when the sum of their covered distances is $160$ miles.
Thus, they will pass each other at $2+2=4$ pm.