x^3-27 factorises, because x=3 is clearly a root when x^3-27=0.
If we divide by the factor (x-3) the other factor is x^2+3x+9.
3x-x^2 also factorises: x(3-x). So (3x-x^2)/(x^3-27) simplifies to x(3-x)/((x-3)(x^2+3x+9))=-x/(x^2+3x+9).
Dividing further by x/(x^2+3x+9), which is the same as multiplying by (x^2+3x+9)/x, gives us -1.