Let F = gravitational force
m1 = mass of first ball
m2 = mass of second ball
d = distance between the balls
F = k(m1)(m2)/d2
Let F1 be the force when m1 = m2 F1 = k(m1)2/d2
Let F2 be the force when mass of first ball is (1/2)m1 and mass of second ball is (3/2)m1, and the original distance is tripled.
F2 = k(1/2)(m1)(3/2)(m1)/(3d)2 = k(3/4)(m1)2/(9d2)
=[ k(m1)2/d2 ](3/4)/9 = (1/12)F1
F2 is 1/12 of F1