9m6 + 8(m6+16)
Distrubute the 8 over the terms in brackets and collect like terms:
$$9m^6+8(m^6+16)\rightarrow 9m^6+8m^6+8\times16\rightarrow17m^6+128$$
.