Since y varies directly as x, we have that this expression is true:

Now, we are given the information that y=80 when x=32, then we can find k easily like this:

Finally, to find x when y=100, we substitute each value and solve for x the resulting expression:

Therefore, x=40 when y=100