First, we have to figure out the angles on the interior of the triangles. Since the 90° angle and the angle next to it form a straight line, we know that they are supplementary and add up to 180°. We would then subtract 90° from 180° to find the value of that angle, which comes out to be 90°. Next, since the angle measuring 125° and the angle next to it are supplementary, we would repeat the same procedure: 180° - 125° = 55°. Now that we know the values of two of the interior angles of the triangle, we can solve for the third. The angles of a triangle should add up to 180°, so we can solve for p like this:
90 + 55 + p = 180
145 + p = 180
p = 180 - 145
p = 35
The value of p is 35°.