To solve the system by substitution, isolate one variable from one equation and substitute the expression obtained for that variable into the other equation.

Isolate x from the first equation:

Substitute x=y-2 into the second equation:

Solve for y:

Substitute y=4 into the expression of x to find its value:

Therefore, the solution to the given system is:
