use the following system, use the second equation to make a substitution for x in the first equation
x+5y-10=0
x=2y-8
x+5y-10=0
x=2y-8