Let $X$ be a subset of $\textbf{R}$, and let $f:X\to\textbf{R}$ and $g:X\to\textbf{R}$ be functions. Let $x_{0}\in X$. Then if $f$ and $g$ are both continuous at $x_{0}$, then the functions $\max\{f,g\}$ and $\min\{f,g\}$ are also continuous at $x_{0}$.
MY ATTEMPT
Once one knows the identities \begin{align*} \max\{a,b\} = \frac{a + b + |a-b|}{2}\quad\wedge\quad\min\{a,b\} = \frac{a + b - |a-b|}{2} \end{align*}
we can argue the continuity of the functions $\max\{f,g\}$ and $\min\{f,g\}$ as a consequence of composition of continuous functions.
My question is: is there another way to prove it without appealing to such identities? (Or one way which deduces them at least).
EDIT
As commented by @GEdgar, the continuity of $|\cdot|$ has already been proved.
One way of deduce these identities: