You put it by variables.
Let's start with A, are there any more a's? No, ok, then that stays the same.
By, yes, there is one more c, so you make it then as x^2, and the rest do not have any other same ones, do the final would look like this,
Ax^2+b= C +d
Hope that this would help you!