Step 1: Mass of a solid sphere
Each sphere is of radius \( R \) and made of the same material, so their mass \( m \) is proportional to the volume:
\[
m \propto R^3
\]
Step 2: Gravitational force between two masses
\[
F = G \frac{m^2}{d^2}
\]
Since they are in contact, the distance between centers \( d = 2R \)
\[
F \propto \frac{(R^3)^2}{(2R)^2} = \frac{R^6}{4R^2} = \frac{1}{4} R^4
\Rightarrow F \propto R^4
\]