Answer:
m=5 and p=4
Step-by-step explanation:
9514 1404 393
24
The number of permutations of 4 items is 4! = 24.
math, maht, mtah, mtha, mhat, mhta,
amth, amht, atmh, athm, ahmt, ahtm,
tmah, tmha, tamh, tahm, thma, tham,
hmat, hmta, hamt, hatm, htma, htam