How this connects to AP Physics 1 (Topic 2.1, Systems and Center of Mass): the center of mass of a system is the weighted average of the positions, xcm = Σ(m x)/Σm. A beam balances when the pivot is at the center of mass, which is the same as saying the torques (m g d) on the two sides are equal.