This is LaTeX code:
[latex]
A^2 - A - 3B - 6 = \left(A - \frac{1-\sqrt{12B+25}}{2}\right) \left(A - \frac{1+\sqrt{12B+25}}{2}\right)
[/latex]