This is LaTeX code:
[latex]
P(B)=\frac{3^n}{6^n}
[/latex]