The centroid coordinates are two thirds away from
The area of the triangle is
The x coordinate of the centroid, X, multiplied by the area is equal to the integral of x multiplied by the area da. That is, it is the sum of the small areas da multiplied by their x coordinate.
Solving for the x coordinate of the centroid,