A variable y varies directly with the square of x. If x=3 when y=6, what is the constant of proportionality, k?