To solve a pair of equations using substitution, first solve one of the equations for one of the variables. Then substitute the result for that variable in the other equation.
$$2x+y-6=0,4x-2y-4=0$$
Choose one of the equations and solve it for $x$ by isolating $x$ on the left hand side of the equal sign.
$$2x+y-6=0$$
Add $6$ to both sides of the equation.
$$2x+y=6$$
Subtract $y$ from both sides of the equation.
$$2x=-y+6$$
Divide both sides by $2$.
$$x=\frac{1}{2}\left(-y+6\right)$$
Multiply $\frac{1}{2}$ times $-y+6$.
$$x=-\frac{1}{2}y+3$$
Substitute $-\frac{y}{2}+3$ for $x$ in the other equation, $4x-2y-4=0$.
$$4\left(-\frac{1}{2}y+3\right)-2y-4=0$$
Multiply $4$ times $-\frac{y}{2}+3$.
$$-2y+12-2y-4=0$$
Add $-2y$ to $-2y$.
$$-4y+12-4=0$$
Add $12$ to $-4$.
$$-4y+8=0$$
Subtract $8$ from both sides of the equation.
$$-4y=-8$$
Divide both sides by $-4$.
$$y=2$$
Substitute $2$ for $y$ in $x=-\frac{1}{2}y+3$. Because the resulting equation contains only one variable, you can solve for $x$ directly.
$$x=-\frac{1}{2}\times 2+3$$
Multiply $-\frac{1}{2}$ times $2$.
$$x=-1+3$$
Add $3$ to $-1$.
$$x=2$$
The system is now solved.
$$x=2,y=2$$
Steps Using Matrices
Put the equations in standard form and then use matrices to solve the system of equations.
For the $2\times 2$ matrix $\left(\begin{matrix}a&b\\c&d\end{matrix}\right)$, the inverse matrix is $\left(\begin{matrix}\frac{d}{ad-bc}&\frac{-b}{ad-bc}\\\frac{-c}{ad-bc}&\frac{a}{ad-bc}\end{matrix}\right)$, so the matrix equation can be rewritten as a matrix multiplication problem.
In order to solve by elimination, coefficients of one of the variables must be the same in both equations so that the variable will cancel out when one equation is subtracted from the other.
$$2x+y-6=0,4x-2y-4=0$$
To make $2x$ and $4x$ equal, multiply all terms on each side of the first equation by $4$ and all terms on each side of the second by $2$.