x + 5y = 126

y = 3x +6

so you take the second equation and put it into the first one like this x + 5 ( 3x+6 ) = 126 and then solve for x .