y varies directly as x, and y=20 when x=5

y = kx

when y=20, x=5 , so ...
20 = k(5)
k = 4

then y = 4x