No secret. The negative sign was factored out of the term $-2x-27$ and placed in front of the entire fraction in the last line.