X and y vary directly. When x is 24, y is 8. What is x when y is 9?