\[y = \frac{2x - 2}{x + 2}\]
\[y = \frac{2x + 4 - 4 - 2}{x + 2}\]
\[y = \frac{2 \cdot (x + 2) - 6}{x + 2}\]
\[y = 2 - \frac{6}{x + 2}\]