how do I solve this linear equations by substitution x=5 x + y = 4

Substitute 5 for x in the equation x+y=4 to obtain the value of y.
[tex]\begin{gathered} 5+y=4 \\ y=4-5 \\ =-1 \end{gathered}[/tex]So solution of the equations is (5,-1).