solve this p^a-10-24=0

help me solve it

I suspect a typo. As written, this amounts to

p^a = 34
No solution.
On the other hand, if you somehow bizarrely meant
p^2 - 10p - 24 = 0
Then that is
(p+2)(p-12) = 0
p = -2 or 12