factor y^2-81

(y+9)(y-9)

have i factored it correct?

yes, you were looking at at the difference of squares