The value of y varies directly as the square of x and y=27 when x=9. Find the equation that represents this relationship. Report the proportionality constant as a reduced fraction when necessary.