You must consider how far away from the point they are in the horizontal direction. https://en.wikipedia.org/wiki/Center_of_mass#Definition
This is very unbalanced: 30 to the right and 55 to the left.
21
21
21|123456789A
21
21
This is almost balanced (my graphic is not perfect). 38 the right and 36 to the left. 43
43
4321o12345678
43
43