Variable y varies directly with variable x, and y = 6 when x = 9.

What is the value of x when y = 18?