The linear pair axiom does the job here.
Note that, the line marked $y_p$ is a straight line.
**Linear Pair Axioms:**
1. If a ray stands on line, then the sum of two adjacent angles so formed is $180^\circ$.
2. If the sum of two adjacent angles is $180^\circ$, then the non-common arms of the angles form a line.
Also, note that sum of the interior angles in a triangle is $180 ^\circ$.