deal with the letters one by one, first, look at m, the exponent in the denominator is 5, the exponent in the numerator is -2, 5 is larger than -2, so the letter stay in the denominator, 5-(-2)=7, that is m to the 7th power.
do the same with n and p, the final result is: n^10 on the top, m^7p^16 on the bottom.