I was able to find code that solved equations of ax+b=cx+d and manipulate it so it solved congruent angles in parallel lines.

However, I am trying to figure out how to manipulate the code so it solves supplementary angles in parallel lines in the form of ax+b+cx+d=180.

The original code is WAY above my skill set and I am surprised I was able to figure out slide one at all. I need slide two to work like slide one in the form mentioned above for supplementary angles.

Anyone able to figure this out?