\[30x + 3 \cdot (x - 5)^{2} =\]
\[= 30x + 3 \cdot \left( x^{2} - 10x + 25 \right) =\]
\[= 30x + 3x^{2} - 30x + 78 = 3x^{2} + 75\]