Solving simultaneous equations graphically