Chapter:

Centre-of-Gravity-and-Centroid

The x axis coordinate and y axis coordinate of centroid are having different types of calculations to calculate m.