(3x+8)=(5x-20). The angles are vertical so it's equal. You then used the solved for x to solve (3x+8)+(5x+4y)=180 to solve for y. This is because these two angles are supplementary so they add to 180. We assume x is already known from the first equation.
Solving the first equation: 2x=28 x=14
Second equation: 3*14+8+5*14+4y=180 42+8+70+4y=180 4y=180-120 4y=60 y=15