This is LaTeX code:
[latex]
P = x(-3x +30) = -3x^2 + 30x
[/latex]