Answer
(a) $g(2)=5$
(b) $g(-2)=5$
Work Step by Step
RECALL:
$g(a)$ represents the value of the function $g$ when $x=a$.
Replace $x$ with the given value to obtain:
(a)
$g(2) = 2^2+1
\\g(2)= 4+1
\\g(2)=5$
(b)
$g(-2) = (-2)^2+1
\\g(-2)= 4+1
\\g(-2)=5$