Solution
David simplified a polynomial

For the first step
Open the brackets

The first step is correct.
For the second step
Collect like terms

The second step is correct
For the third step
Add up the like terms
![\begin{gathered} (-3x^3+5x^3)+(-2x^2-4x^2)+(12x)+(8-7) \\ =(2x^3)+(-6x^2)+(12x)+(1) \\ \text{Open the brackets} \\ =2x^3-6x^2+12x+1 \end{gathered}]()
The third step is correct.
Hence, David did not make a mistake