The voulme of fish tank with a square base is y^3-6y^2+9y cube inches. The hieght is Y. Find the length of a side of the square base.

can some one help me please.

s^2 y = y^3 - 6 y^2 + 9 y

s^2 = y^2 - 6 y + 9
s^2 = (y-3)^2
s = y - 3