Consider the system of linear equations $\mathbf{A}\mathbf{x}=\mathbf{b}$. For each row $i$, we have:
$$
\mathbf{A}_{i\cdot}\mathbf{x}=b_{i}
$$
In Gaussian elimination, we perform a sequence of transformation steps. Each step consists of adding or subtracting a multiple of one row to another row of both $\mathbf{A}$ and $\mathbf{b}$:
$$
\begin{aligned}
\mathbf{A}_{i\cdot}^{k+1} &\leftarrow \mathbf{A}_{i\cdot}^{k}+\alpha_{ij}^{k}\cdot\mathbf{A}_{j\cdot}^{k} \\
b_{i}^{k+1}&\leftarrow b_{i}^{k}+\alpha_{ij}^{k}\cdot b_{j}^{k}
\end{aligned}
$$
Now it's easy to show that
$$
\begin{aligned}
b_{i}^{k+1} &= b_{i}^{k}+\alpha_{ij}^{k}\cdot b_{j}^{k} \\
&=\mathbf{A}_{i\cdot}^{k}\mathbf{x}+\alpha_{ij}^{k}\cdot \mathbf{A}_{j\cdot}^{k}\mathbf{x}\\
&=\left(\mathbf{A}_{i\cdot}^{k}+\alpha_{ij}^{k}\cdot\mathbf{A}_{j\cdot}^{k}\right)\mathbf{x}\\
&=\mathbf{A}_{i}^{k+1}\mathbf{x}
\end{aligned}
$$
We have seen that the transformation step does not change the solution $\mathbf{x}$, i.e., the solution $\mathbf{x}$ is an invariant with respect to the Gaussian elimination step. When solving a system of linear equations, the scalars $\alpha_{ij}^{k}$ are chosen such that the matrix $\mathbf{A}$ becomes an upper triangular matrix, which makes the equation much easier to solve e.g. using backward substitution.
More Generally
Premultiplying the equation with an invertible matrix $\mathbf{T}$ does not change the solution $\mathbf{x}$:
$$
\mathbf{A}\mathbf{x}=\mathbf{b}
\implies
\mathbf{T}\mathbf{A}\mathbf{x}=\mathbf{T}\mathbf{b}
$$
Defining $\mathbf{A}'=\mathbf{T}\mathbf{A}$ and $\mathbf{b}'=\mathbf{T}\mathbf{b}$, we have a new equation
$$
\mathbf{A}'\mathbf{x}=\mathbf{b}'
$$
If you can find $\mathbf{T}$ that makes the new equation much easier to solve, then you can create your own algorithm to solve a system of linear equations!