The coefficient of \(x^{12}\) in the expansion of
\[
(x^2+x+2)^8
\]
is
Show Hint
For multinomial expansions, first write the general term and equate the required power of the variable. Then find all valid non-negative integer solutions and add their contributions.