Remember that PEMDAS tells you to deal with your exponents before multiplying or dividing.
Since p = 7 and m = 4,we have (7)²(4) ÷ 4 or 49(4) ÷ 4.
Now when we multiply and then divide by the same value, we essentially cancel it to just 1 so we have 49(1) which is just 49.