Function to solve the linear system