Step-by-step explanation:
[tex]{:}\longrightarrow\sf y=-x+50 [/tex]
[tex]{:}\longrightarrow\sf y+x-50=0 [/tex]
[tex]{:}\longrightarrow\sf x+y-50=0 [/tex]