x+y+z=180
y+z=5x
z=y+24
Write these in "standard" form
x+y+z=180
-5x+y+z=0
-y+z=24
Eliminate y by adding the 3rd equation from each of the other 2
x+2z=204
-5x+2z=24
Now eliminate z by subtracting the bottom equation from the top
6x=180
Now go back to the equations and find y and z; then check your work.