Hi,

The center of mass G of a solid is given by the formula

If the solid is homogeneous, is constant (independent with respect to x, y and z) and therefore can be pulled out of the integral

In your example, as far as I have understood, the solid is axysimmetric with respect to the z axis therefore G is on the z axis

The projection of the formula on the z axis gives :