X, distance for the trip
27, distance in miles still remaining to be traveled
D, distance in miles already driven
-
The travel speed is not important in this problem, and no time quantity is given nor mentioned. There is enough information for how much time "left to go". If you are interested in that, then and then , or 27 MINUTES.