You can make it into a linear equation but replace y with d (distance) and x with t (time).
d = mt
20 would be the slope (m) and you can plug in 300 for the distance (d) and then solve for t.
300 = 20t
Solve for t by dividing both sides by 20.
t = 300/20
t = 15