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