I've been trying to create a quadratic graph that passes through an intersection of two linear graphs. So far I've been able to get the corner but it seems like I cannot use the intersection in \addplots. This is what I got so far.
\usepackage{tikz, pgfplots}
\usetikzlibrary{calc, intersections}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{tikzpicture}
\begin{axis} [
xmin=0,
xmax=10,
ymin=0,
ymax=10,
domain=-10:10,
]
\addplot[color=black, name path=A] {x};
\addplot[color=black, name path=B] {-x + 10};
\addplot[name intersections={of=A and B, by=C}] coordinates {(C)};
\end{axis}
\end{tikzpicture}
\end{document}
It seems like there's an error in this line \addplot[name intersections={of=A and B, by=C}] coordinates {(C)}; in the last (C) as when I replace the (C) with (0,0) the plot renders fine without the intersection.
If this worked, I was planning to use the x y coordinate given by C to set the vertex of another quadratic graph with the formula a(x-v)^2+h. Is there a way to achieve this?

