pow takes 2 arguments: base and exponent. Everything passed to the first parameter will be base and everything passed to the second will be exponent.
So:
1 2 3 4
pow(
p * (a * y), //←base
b //←exponent
)
Expression p * (a * y) would be calculated first and the result will be used as a base.