We have the following system of equations:

Solving by substitution method.
By substituting equation B into A, we have

Now, by adding 2x to both sides, we get

and by adding 2 to both sides, we get

Then, by dividing both sides by 5, x is given by

In order to find y, we can substitute this result into equation (A). It yields,

Therefore, the solution of the system is x=2 and y=4.