Find the center of mass by using the formula.
Center of mass along -axis is .
Here, are masses and are -coordinates.
Substitute and .
.