The first expression you typed, is it supposed to be an equation?

If so, you can expand on the right hand side.

Giving

Then, equating the coefficients, you see that:

and

Or, you can take directly from where you reached;

and equate the coefficients.