Method for solving the linear.