Consider the center of mass of sphere A is (0,0)
So, the center of mass of sphere B is at (2R,0)
The Center of mass of sphere C is at
Now,
The center of mass of the system is
r=m1r1+m2r2+m3r3m1+m2+m3r=m(0,0)+m(2R,0)+m(R,√3R)m+m+mr=(0,0)+(2R,0)+(R,√3R)3r=(0,R√3)