This is LaTeX code:
[latex]
P(A) = \frac{1}{2}
[/latex]