The student made the mistake in Step 2.
It should be m∠o + m∠p = 180 (Supplementary angles)
If this is corrected, then, since m∠m + m∠n + m∠o = 180 from Step 1,
we have,
m∠m + m∠n + m∠o = m∠o + m∠p which is Step 3.
Cancelling m∠o both sides, we get,
m∠m + m∠n = m∠p which is Step 4.