-1+7p=5(1+p)
-1+7p=5+5p
7p-5p=5+1
2p=6
p=6/2
p=3
Hope this helped!
P = 3
Work is provided in the image attached.