Let's say you have two equations, y=3x+6 and 2x+3y=7.
First, you want to plug y=3x+6 into 2x+3y=7.
Subtract 18 from both sides:
Divide both sides by 11:
Plug x back into one of the original equations:
And that is how you do substituton.