The center of mass will lie along the line segment connecting the two masses and sit nearer the heavier one. If the masses are equal, then the center of mass will be exactly halfway between. If one mass is twice the other, then the center of mass will be 2/3 of the way from the lighter to the heavier. (In general, the center of mass is the weighted average of the positions of each object weighted by the mass of that object.)