If y varies directly as x and y=6, when x=2, what is y when x=3?