This is LaTeX code:
[latex]
c = \sqrt{25^2 {\rm cm}^2 + b^2}
[/latex]