Observe the figure :
\The centroids are
,
and
.
The center of mass
is
and
.
Where
.
is the total mass of the system.
Now calculate
:

Now calculate
:

Now calculate
:
.
Find the value of
:



.
Find the value of
:



.
The center of the mass is
.
The center of mass is
.