Given the equations:

To solve this equation system, you have to replace the first one into the second one:

Solve the term in parentheses using the distributive propperty of multiplication

Solve for x

Finally replace the calculated value of x in the first equation and solve for y

Using the second equation you can prove if the calculations are correct:

The calculations check, the values are x=3 and y=1