Let the expression we will add be "A", thus we can write:

We can use the distributive property on the right hand side and then use a bit algebra to solve for "A". The distributive property is shown below:

Let's do the algebra. The steps are shown below:

Thus, we need to add 4x + 2 to "5x + 7" to make it equal to "9(x+1)".
The correct answer is:
B