basicly what you do is...
put the (x+1) in for the X in Xsquared+3x-1 anytime you see an X
so it'd be (x+1)squared + 3(x+1)-1
which is xsquared + 2x+1 +3x+3-1 which simplified is
Xsquared+5X+3
and then for the g(1) you put 1 in for x in the g(x) equation
which is -1+8 which equals 7
so you have to add those two together to get yer answer i guess?
so Xsquared+X+3 + 7 is..... Xsquared + 5X + 10
HAHA.... thats my best attempt its so hard to type online but yeah, someone correct me if im wrong