If y varies inversely as x, and y = 3 when x = 6, how do you find the value of x when y = 18?