If [tex]y[/tex] varies directly with [tex]x[/tex], then their ratio is constant:
[tex]\dfrac{y}{x}=k[/tex]
So, we can write
[tex]y=kx[/tex]