Since the region of integration is a triangle with vertices the region is bounded by the function and , see sketch
We want to integrate with respect to first, hence, solving for x, the integration boundaries become
and the region is
To calculate
which is the coordinate of the center of mass,
we calculate at first the integral in the numerator.
The integral in the denominator is very similar
Hence