One way to set up your equation is by noting that Ashley has 18 km more to drive than Dan.

One way to set it up is by using t=d/r

Where x is the distance from Banff to Jasper.

Then, after finding x, plug that back into the equation to find the time in hours.