TeX source:
\begin{gathered} c^{2}=a^{2}-b^{2} \\ 16=25-b^{2} \\ b^{2}=9 \end{gathered}