Hello, please consider the following.
x is obviously different from 0 and then, dividing by x is legit.
For the first 105 miles the speed is x, so the time spent is

For the second part, the speed is 1.4 x, so the time spent is

In total, the time she spent driving is

Thank you.