If the two cars get the same mile per gallon, the proportion "distance travelled / gallons used" has to be constant for any driver.
Then, we can write this proportion for the two drivers.
We get:

Then, we can solve for m as:

Answer: Daniel's trip was m = 242 miles.