Hi everyone!

So I have this equation in my economics book:

1)

and they simply rearrange the terms to get to this equation:

2)

I don't understand how they get from 1) to 2). I managed to get up to this point, but then I don't know what to do next:

3)

Any help would be greatly appreciated!