This is LaTeX code:

[latex]
\mathds{E}\left(A_{n+1}\right) = 2 \cdot \mathds{E}\left(A_{n}\right) + 3 \cdot \mathds{E}\left(B_{n}\right) - \mathds{E}\left(B_{n+1}\right)
[/latex]