The centre of gravity of a system is found by calculating the moments of each force about a chosen point and adding them up, this sum of the moments = moment of the combined weight acting from the CoG

It is best to calculate these CoG in x and y separately (in 2 dimensions)

ex 8c

The Center of Gravity of an Irregular shaped object