im taking my final right now and don't want to fail please help.

Answer:
3n+2
Step-by-step explanation:
[where, a and b are some constants and x is a variable ( input values)]
so, a+b=5
so,2a+b=8
subtract the first equation from second:
2a+b-a-b=8-5
a=3.
by substituting the value of a in one of the above equations,
you will get b as 2
so, when the input is n, output will be : 3n+2