If y varies inversely as x and y = 6 when x = 18, then how do you find x when y = 10?