You did not state the problem correctly then. "[itex]-2t^2[/itex]" is NOT the general solution to the equation, nor is it a solution to the equation with specific additional conditions. It is a particular solution to the entire equation- which you would then add to the general solution to the associated homogeneous equation to get the general solution to the entire equation.
Yes, if the general solution to the associated homogeneous equation is "[itex]C_1e^{ax}+ C_2e^{bx}[/itex]" and a particular solution is [itex]y_p(x)[/itex], then the general solution to the entire equation is [itex]C_1e^{ax}+ C_2e^{bx}+ y_p(x)[/itex] and, obviously, taking [itex]C_1[/itex] and [itex]C_2[/itex] equal to 0 gives back [itex]y_p(x)[/itex]. IF part of the [itex]y_p(x)[/itex] that you get happens to be one of the solutions to the homogeneous equation, then you can add that to the homogeneous equation just changing the constant multiplying it.
Here two independent solution to the associated homogeneous equation are t and [itex]te^t[/itex] so the general solution to the homogeneous equation is [itex]y= C_1t+ C_2te^t[/itex].
You say you got, as specific solution to the entire equation [itex]y_p= -2t^2- 2t[/itex]. Okay, that means your general solution to the entire equation can be written as [itex]y(x)= C_1t+ C_2te^t- 2t^2- 2t[/itex]. But that is the same as [itex]y(x)= (C_1- 2)t+ C_2te^t- 2t^2[/itex] and that could be rewritten as [itex]y(x)= B_1t+ B_2te^t- 2t^2[/itex] where [itex]B_1= C_1- 2[/itex] and [itex]B_2= C_2[/itex].