Answer
$g\left(-\displaystyle \frac{5}{z}\right)=\displaystyle \frac{25+10z+5z^{2}}{z^{2}}$
Work Step by Step
$g\left(-\displaystyle \frac{5}{z}\right)$=... substitute x with $-\displaystyle \frac{5}{z}$ and simplify
$=\left(-\displaystyle \frac{5}{z}\right)^{2}-2\left(-\displaystyle \frac{5}{z}\right)+5$
$=\displaystyle \frac{25}{z^{2}}+\frac{10}{z}+5\qquad$... common denominator: $z^{2}$
$=\displaystyle \frac{25+10z+5z^{2}}{z^{2}}$