Grouping can mean different things in different contexts. In simple cases, polynomials are written in such a way that all you need to do is add parentheses to make groups. Usually we are interested in doing this so we can factor or simlify the result.
Example
x^2 +2x +3x +6
(x^2 +2x) +(3x +6) . . . . parentheses added to group pairs of terms
x(x +2) +3(x +2) . . . . . . common factor pulled from the terms of each group
(x +3)(x +2) . . . . . . . . . common factor removed to give factored result