Answer:
1) 20
2) 4
Explanation:
1)
I) Substitute t with 2:
2² + 5(2) + 6
II) Simplify/Evaluate:
2² + 5(2) + 6
4 + 10 + 6
14 + 6
20
2)
I) Setup the equation:
g(t) = 5t - 2 = 18
5t - 2 = 18
II) Solve it:
Reorder the terms: 
-2 + 5t = 18
Add 2 to each side of the equation:
-2 + 2 + 5t = 18 + 2 
Simplify:
0 + 5t = 18 + 2 
5t = 18 + 2 
5t = 20 
 
Divide each side by 5: 
t = 4
Hope I helped :)