If y varies inversely as x and y = 12 when x = 3, how do you find x when y = 18?