The final solution without using matrix to solve. It's worst than, but the easy way does not have challenges :)