@jb55 See also: https://en.wikipedia.org/wiki/Dimensional_analysis
Heck, part of my thesis paper in university was a step-by-step description of how Newtons Law of Universal Gravitation could have conceivably been derived from first principles, purely based on what it must have been for the universe to work. The possible solution space is very constrained!