RowReduce[{{1,2,-7},{-1,-1,1},{2,1,5}}]