Say we have two equations with two common unknowns:
2y=10x+4 (1)
x+5y=15 (2)
*Note: The (1) and (2) after the equations are labels, not part of the equations themselves.
We solve for one unknown in either equation. For example, we solve for y in equation (1):
y=5x+2
Notice the equation still has two unknowns, so we can't do anything unless we substitute it into equation (2). Substituting equation (1) into equation (2) gives:
x+5(5x+2)=15
Now we have only one unknown left because we put y into terms of x from equation (1). Solving for x in the above equation, we get x=5/26.
So we have one variable left to find, so we take the x value we just calculated and substitute that back into one of the ORIGINAL equations, either (1) or (2), doesn't matter. Let's put it back into equation (1). Remember we already put equation (1) in terms of y, so it's easy to use that:
y=5x+2
y=5(5/26)+2
y=77/26
To verify we did the substitutions correctly, we make sure the system of equations still holds true.
2y=10x+4 (1)
x+5y=15 (2)
becomes
2(77/26)=10(5/26)+4 (1)
(5/26)+5(77/26)=15 (2)
Are BOTH of these equations true? Yes, they have to be. If they're not, you made an arithmetic error.