Answer: x = 2
Step-by-step explanation:
[tex]x+y=8\\y=3x[/tex]
Replace y in the first equation by the value of y in the second equation.
[tex]x+y=8\\x+3x=8\\4x=8\\x=\frac{8}{4}\\ x=2[/tex]