結果 : solve using matrix method