This is LaTeX code:
[latex]
P = \frac{ab}{2}
[/latex]