\(8x^3-64y^3=\left(2x\right)^3-\left(4y\right)^3=\left(2x-4y\right)\left(4x^2+8xy+16y^2\right)\)
\(9x^2-30xy+25y^2=\left(3x\right)^2-2\cdot3x\cdot5y+\left(5y\right)^2=\left(3x-5y\right)^2\)
\(4x^2+16x+7=\left(2x^2\right)+2\cdot2x\cdot4+4^2-9=\left(2x+4\right)^2-3^2=\left(2x+1\right)\left(2x+7\right)\)
\(-5+18y-9y^2=-\left[\left(3y\right)^2-2\cdot3y\cdot3+3^2-4\right]=-\left[\left(3y-3\right)^2-2^2\right]=-\left(3y-5\right)\left(3y-1\right)\)