Hello William,
Let v = average rate, d = distance travelled, and t= time spent
v = d/t
v1= 75 mph
v2 = 45mph
total time = t1 + t2 = 8
assume d1 = d2
v1*t1 = v2*t2
t2 = v1*t1/v2
Let's substitute t2 into the equation for total time:
t1 + (v1*t1/v2) = 8
t1[ 1 +v1/v2] = 8
t1 = 8/[1+(v1/v2) = 8/(1+75/45) = 3 hours