Given two functions \(f\left(x\right)=5x+1\) and \(g\left(x\right)=ax+3\). Find the value of g(1) if \(a=f\left(2\right)-f\left(-1\right)\)

We have: \(f\left(2\right)=5.2+1=11\)

\(f\left(-1\right)=5.\left(-1\right)+1=-4\)

then: \(a=f\left(2\right)-f\left(-1\right)=11-\left(-4\right)=15\)

Hence: \(g\left(1\right)=a.1+3=15.1+3=18\)