Algebra and Trigonometry 10th Edition

In order to obtain $g(x)$, shrink vertically $f(x)$ and then, move 2 units left.
$f(x)=\frac{2}{x}$ (Red) $y=\frac{1}{x}$ (Yellow), after the vertical shrink. $g(x)=\frac{1}{x+2}$ (Green)