the value of p is 40 degrees.
Explanation:
if you reference the measurements given, 90 and 140, you can see that every angle within the perpendicular lines is 90 degrees, so it's safe to guess that the angle above p is equal to it. 140 + 40 = 180 degrees, or a straight line.
apologies if this is poor wording