Solving a system of equations with graphical method