If y varies inversely as X and y = 18 when X = 3 What is the value of k?