The force of gravity between two objects is given by:
[tex]F=G\frac{m_1m_2}{r^2}[/tex]where G is the gravitational constant, m1 and m2 are the masses of the objects and r is the distance between them.
In this case we know that the objects are identical, this means that the masses are the same:
[tex]\begin{gathered} m_1=m_2 \\ \text{for simplicity let's call them }m \end{gathered}[/tex]Then we have that:
[tex]F_0=G\frac{m^2}{r^2}[/tex]Now, if we double the mass of each object and the distance between them we have that:
[tex]\begin{gathered} F=G\frac{(2m)^2}{(2r)^2} \\ F=G\frac{4m^2}{4r^2} \\ F=G\frac{m^2}{r^2} \\ F=F_0_{} \end{gathered}[/tex]Therefore the new force is the same if doubled both the mass of each object and the distance between them.