Distance = rate*time
Let distance from X to Y be 'd'
From the equation we can solve for 'time'
time = distance/rate
The total time it takes to go 50 mph ,then 40 mph is:

The total time it takes to go 45 mph round trip is:

We know that the round-trip at 45 mph takes half-hour shorter, so by adding '1/2' to its time it will be equal to the time to go 50 then 40.

Answer: The distance from X to Y is 900 miles.
Miranda's I think because her car may take more gas but it goes a farther distance
I would say the answer is 95.9 not to sure but I’m pretty confident