Pretend that we do not know gravitational law at all, and want to investigate the gravitational law by dimensional analysis:
Let's suppose the gravitational force are proportional to both masses, distance, hence:
F \propto m_1^am_2^br_{12}^c
But obviously, there is no way to equal the...