solve the following system by the substitution method 2x+y=4 y=2x

To solve the system of equations by substitution method, we will substitute the value of y from the second equation into the first equation:

2x + y = 4
2x + (2x) = 4 [Substituting y=2x]
2x + 2x = 4
4x = 4
x = 1

Now that we have the value of x, we can substitute it back into the second equation to find the value of y:

y = 2x
y = 2(1)
y = 2

Therefore, the solution to the system of equations is x = 1 and y = 2.