Suppose y varies directly with x and y=24 when x=8. What is the value of when x=10?