Put people, bags and fuel in a Cessna 172N and watch the center of gravity move through the envelope from takeoff to landing.
Moment = weight × arm. Total moment ÷ total weight = center of gravity. The arms are the handbook's loading stations, in inches behind the datum.