\[3a² - C + 6a = a^{2} + D\]
\[3a² - a^{2} - C = D - 6a\]
\[2a^{2} - C = D - 6a\]
\[\Longrightarrow \ C = 6a;\ \ D = 2a^{2}.\]