How do you multiply (5q^4r^2)^5?

(5q^4r^2)^color(red)(5
here we multiply $\textcolor{red}{5}$ with each of the powers within the bracket.
5^((1. color(red)(5))) . q^((4. color(red)(5)) ) . r^((2 . color(red)(5))
$= {5}^{5} {q}^{20} {r}^{10}$