For an effective center of mass of the system of particles
both masses and their respective distances from the reference point is required
For an effective center of mass of the system of particles, particle masses, as well as their respective positions, are necessary, otherwise, it is impossible to locate the exact center of mass of the particle system. Following diagram explains more about the center of mass of two particle system.
Where Xcm represents the required center of mass of the system.