Assuming the given equation fairly represents the rental car costs being equal to each other, we can solve for m by ...
... 0.25m = 10 . . . . . . add -15-0.25m
... m = 40 . . . . . . . . .. multiply by 4
You must drive 40 miles for the costs to be equal.