can't quite follow your working, here's how I would look at it:
q1 is located at distance d from the origin
The graph gives the potential at the origin, as q2 charge is moved a distance x away from the origin.
Unknowns:
q1
q2
when the 2nd charge is at infinity, the potential at the origin, V, will be only due to q1, use this to calculate q1 in terms of V & d.
Then pick a suitable point from you graph, the zero crossing, x = 8, seems the easiest to me,
you know q1 is d from the origin & q2 is x from the origin, and the net potential is zero, us these facts to calculate q2.