If a matrix is in echelon form, the nonzero rows form a basis for the row space.
Applying elementary row-addition operations does not change the row space.
To find basis for row space of a matrix A, iteratively transform A into a matrix B
See Gaussian elimination - Finding a basis for the computation