Onto the next step, I would assume that you need to perform Gaussian elimination on the matrix.
So based on my research this article would help understanding the requirement
What we normally do in programming is we write a function which takes the matrix as an input, and provides the echelon form as return value. This is about structuring your code, breaking up the task into parts that can be individually tested. How the function works should be designed by you, and it requires you to know the mathematical background, so that you can describe the steps what should be done. Write up an example what is the starting state, what steps to perform and how the output looks like. If this is clear then you can start writing code.