Answer: when y= 10 x=30
How is it x= 30 you may ask?
x varies directly as y. This means that:
(x/y) is a constant. Let us call this constant as "k". i.e: x/y=k
for the first one which is x=24 y= 8
24/8= 3
BUT... about y=10?
for y= 10 its the same rule x/y= k in this case we already found K which is 3
*we don't have x so we cant divide anything however we do have "k" and y so all we have to is multiply so its 10*3= 30*
And that's how x= 30 when y= 10