First find g(5) by putting in 5 for x
5(-5) + 2 (-5)^2 = -25 + 50 = 25
then put 25 in f(x)
3 - sqrt(25) = 3 - 5 = -2 (it COULD be (3 - -5) = 8 because sqrt 25 is +-5 )
√25 equals only 5
±√25 equals ± 5
See: https://en.wikipedia.org/wiki/Radical_symbol#Principal_square_root