c(c^2-cg+g^2) + g(c^2-cg+g^2) then combine terms.
You can ask a new question or answer this question.