\(a\ne0\)
a/ \(\left\{{}\begin{matrix}64a+8b+c=0\\-\frac{b}{2a}=6\\\frac{4ac-b^2}{4a}=-12\end{matrix}\right.\) \(\Leftrightarrow\left\{{}\begin{matrix}64a+8b+c=0\\b=-12a\\4ac-b^2+48a=0\end{matrix}\right.\)
\(\Leftrightarrow\left\{{}\begin{matrix}c=32a\\b=-12a\\4a.\left(32a\right)-\left(-12a\right)^2+48a=0\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}a=3\\b=-36\\c=96\end{matrix}\right.\)
\(\Rightarrow y=3x^2-36x+96\)
b/ \(\left\{{}\begin{matrix}c=6\\-\frac{b}{2a}=-2\\\frac{4ac-b^2}{4a}=4\end{matrix}\right.\) \(\Leftrightarrow\left\{{}\begin{matrix}c=6\\b=4a\\24a-16a^2=16a\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}a=\frac{1}{2}\\b=2\\c=6\end{matrix}\right.\) \(\Rightarrow y=\frac{1}{2}x^2+2x+6\)