As when x= 0, f(x)=10. We get c=10
[tex]\begin{gathered} \begin{cases}4a+2b+10=15 \\ 16a+4b+10=18\end{cases}\rightarrow\begin{cases}-16a-8b=-20 \\ 16a+4b=8\end{cases}\rightarrow \\ -4b=-12 \\ b=3 \end{gathered}[/tex]having that. We get
[tex]\begin{gathered} 4a+6=5 \\ 4a=-1 \\ a=-\frac{1}{4} \end{gathered}[/tex]so the function is
[tex]-\frac{1}{4}x^2+3x+10=f(x)[/tex]