The given situation can be shown as:

Mass of H atom = m
Mass of Cl atom = 35.5m
Let thecentre of mass of the system lie at a distance x from the Cl atom.
Distance of the centre of mass from the H atom = (1.27 – x)
Let us assume that thecentre of mass of the given molecule lies at the origin. Therefore,
we can have:

Here, the negative sign indicates that the centre of mass lies at the left of the molecule.
Hence, thecentre of mass of the HCl molecule lies 0.037Å from the Cl atom.