Answer :

The answer is P=9 
because to isolate the variable  subtract 5 from both sides then divide 72 by 8 to get 9
8p+5=77
     -5=-5
     8p=72
 dived by 8 on both sides 
p=9