Help on these following math functions !! Worth 20 points , I suck at math but these could be potentially easy for math lovers or those who are good at it!

okay so first things first where it says like g(x) = blah blah blah. you have to go down th like g(10) and plug it in g(10) = -3(10)+1. (Hope that makes since) and the answer for that one would be 31