First, we will find the value of k
We can do this by sybstituting y=24, x=6 in;
y=kx and then solve for k
24= k(6)
divide both-side of the equation by 6
24/6 = k
4 = k
k=4
Then when x = 5, we will substitute x=5 and k=4 in; y=kx and then solve for y
y= (4)(5)
y = 20