A= matrix([[2,-4],[-1,5]])
print 'for the set of equations to be an upper triangular,we to multiply row2 by 2 and add row1 to it'
print 'new matrix-'
B=matrix([[2,4],[0,6]])
C=([[6],[6]])
X=B.solve_right(C)
X