You can put this solution on YOUR website! Notice these two groupings:
Rearrange so that we have a group of ys and a group of as.
Once we factor out a ys and as, we notice each has a common factor of (x+1), so we factor out x+1.
Our final answer is :