Hey Chris,
r1 = speed to appointment = 50
r2 = speed home = 40
t1 = time to appointment
t2 = time home = t1 + 1/5
d1 = distance to appointment
d2 = distance home
d1=d2
So using d=rt (distance = rate x time)
d1 = r1t1
d1 = 50t1
d2 = r2t2
d2 = 40(t1+1/5)
Since d1=d2
50t1 = 40(t1+1/5)
50t1 = 40t1 + 8
10t1 = 8
t1 = .8 hours
Now we need to find distance, so we're not done.
d1 = r1t1
d1 = 50(.8)
d1 = 40 miles