I have two matrices $A$ and $B$, and I need to find two matrices $E_1$ and $E_2$ that satisfy the question stated in the title.
\begin{align*} A&=\begin{bmatrix} 1&2&-1\\ 1&1&1\\ 1&-1&0\\ \end{bmatrix} & B&=\begin{bmatrix} 1&-1&0\\ 1&1&1\\ 4&-1&-1 \end{bmatrix}. \end{align*} I know I need to find two elementary row operations that will turn $A$ into $B$, I think the first operation is switching the first and third row in $A$, but I don't know what the second operation would be.