Ahh, I'm going to assume that this is partial fractions decomposition? If so you can do this. Multiplying through by gives

Now we use this little trick, if we let we get

And letting gives

The other way is to compare coefficents. Expanding the starred step gives

Now we know that for this expression to be true that each of the coefficients must match. So and . Solving those gives the correct values.