Since the exponent is on the outside of the paranthesis, you'd have to multiply it by everything on the inside: a^m x b^m