trying to solve Ax=b