If distance = rate x time, let's set up two equations, one for her trip to her appointment and one for her trip home. In each case the distance would be the same.
Using d = rt
rg = her rate going to her appointment = 50 mph
rh = her rate going home = 40 mph
tg = time it took to get to the apointment
th = time it took to get home
We are told that th = tg + .25
d = 50tg
and
d = 40th = 40(tg + .25)
Since both equations are the distance from home to the appointment, we can set them equal to one another.
50tg = 40(tg + .25)
50tg = 40tg + 10
10tg = 10
tg = 1 hour
Knowing one of the times, we can determine the distance
d = rg tg
d = 50 (1)
d = 50 miles