Equations so far...

s=d/t

d=t*s

t=d/s

V=Xf-Xo/t

tV=Xf-Xo

Xf=tV+Xo

Xo=Xf-tV

slope=(Yf-Yo)/(Xf-Xo)=DY/DX