The sum of an object's moments is divided by the total weight of the object to determine its centre of gravity.
The moment is the product of the weight and its position as measured from the origin.
The centre of mass of a uniform rod of mass and length is located at the rod's midpoint. The centre of gravity is also located at the midpoint of the rod. In other words, the entire weight of the rod acts through its centre.