Answer:
Hey There!
Let's solve ....
[tex]let \: m_{1} \: and \: m_{2} \: are \: the \: two \\ masses \: seperated \: by \: \\ distance \: d \\ \\ lets \: find \: equation \: 1 \\ \\ f \propto m_{1} m_{2} \\ \\ now \: equation \: 2 \\ \\ f \propto \frac{1}{ {d}^{2} } [/tex]
On combining these two equations, it comes
[tex]f \propto \frac{ m_{1} m_{2} }{ {d}^{2} } \\ \\ f = g \times \frac{ m_{1} m_{2} }{ {d}^{2} } \\ \\ [/tex]
[G is a gravitational constant here]...
Hence it is proved.