ok
[tex]\begin{gathered} (x+6)^3=^{}x^3+3(x)^2(6)+3(x)(6)^2+6^3 \\ \text{ = x}^3+18x^2\text{ + 3(36)x + 216} \\ \text{ = x}^3+18x^2\text{ + 108x + 216} \end{gathered}[/tex][tex]\begin{gathered} (a+b)^3\text{ } \\ first\text{ term = a} \\ \text{second term = b} \\ \text{theorem } \\ (a+b)^3=a^3+3a^2b+3ab^2+b^3 \end{gathered}[/tex]that is the rule
just identify a and b in your problem
a = x
b = 6
Substitute in the theorem, and simplify