Answer
(a) $g(5)=-24$
(b) $g(-4)=-15$
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(5) = -5^2+1
\\g(5)= -25+1
\\g(5)=-24$
(b)
$g(-4) = -(-4)^2+1
\\g(-4)= -16+1
\\g(-4)=-15$