The position vector of center of mass rcm is given as
rcm=Xcmx^+Ycmy^
Where, Xcm=x−coordinate of center of mass and Ycm=y−coordinate of center of mass
rcm=(m1+m2+m3m1x1+m2x2+m3x3)x^+(m1+m2+m3m1y1+m2y2+m3y3)y^
rcm=[2m+m+m(2m)×L+(m)×2L+m(25L)]x^+[2m+m+m(2m)×L+(m)×2L+m×(0)]y^
rcm=813Lx^+85Ly^