hello! I would need some help with this question, I have tried it a few times and got different answers everytime. please explain how you get the answer. thank you!

Answer:
A+50°=180°[because of straight angle]
or,A=180-50
A=130°
Now,
P=A[Alternate angle]
or, P=130°ans