force between the two charges (+q1 and +q2),if they are at a distance 'a' is
F1=1/4pieEo q1q2/d^2................ (1)
when the metal spheres are in contact the charge flow from one sphere to another till both the sides acquires the same charge. here q1 and q2 are of same sign,hence after contact each sphere will have a charge
[tex] \binom{q1 + q2 }{2} [/tex]
now,the force between them,
f2=1/4pieEo
(q1+q2/2)^2/d^2
from eq (1)and eq (2)
f2=f1 (q1+q2)^2/4q1q2