Solving by Factorization method