how would you do this factoring by grouping?

2x^2+3x+6x+9

2x^2+9x+9

you just put all the like terms together

That isn't the answer that is in the back of our book.

sorry is it 2x^2+9x+9 than factor to

(2x+3)(x+3)

To factor this expression by grouping, follow these steps:

Step 1: Identify two pairs of terms that share a common factor.
In this case, the two pairs of terms that share a common factor are 2x^2 and 3x, and 6x and 9.

Step 2: Factor out the greatest common factor from each pair of terms.
From 2x^2 and 3x, the greatest common factor is x, so we can factor out x to get x(2x + 3).
From 6x and 9, the greatest common factor is 3, so we can factor out 3 to get 3(2x + 3).

Step 3: Check if there are any common factors left after factoring out the greatest common factor. If so, factor those out as well.
In this case, there are no common factors left.

Step 4: Check if the terms inside the parentheses are the same. If they are, you have successfully factored.
In this case, the terms inside the parentheses (2x + 3) are the same.

Therefore, the factored form of the expression 2x^2 + 3x + 6x + 9 is:
x(2x + 3) + 3(2x + 3)