(5a)to the power of 3, for a = -1

I just want to know if both of the numbers in the parenthesis have to go to the power of three or if only -1 goes. Thanks :)

yes, (xyz)^n= x^n * y^n * z^n