What was my mistake solving $y''-2y'=-2x$?

The given answer is wrong. There is no minus sign. Also the constant doesn't matter because it gets absorbed in the first term $c_1$. It is always a good idea to plug in your solution into the DE and see if it is actually a silution.