how do I find the greatest common factor when it involves a variable?

Given
[tex]20b^3,16b^4[/tex]Find
Greatest Common Factor
Explanation
Factors of
[tex]\begin{gathered} 20b^3=2\times2\times5\times b\times b\times b \\ 16b^4=2\times2\times2\times2\times b\times b\times b\times b \end{gathered}[/tex]common factors are
[tex]\begin{gathered} 2\times2\times b\times b\times b \\ 4b^3 \end{gathered}[/tex]Final Answer
Hence , the greatest common factor is
[tex]4b^3[/tex]