This is LaTeX code:

[latex]
\mathbb{P}(X = a_i, Y = b_j) = \mathbb{P}(X = a_i, X^2 = b_j)
[/latex]