I need help in how to do centroids of a Triangle

The method of finding the centroid is illustrated at
http://mathworld.wolfram.com/TriangleCentroid.html
Draw straight lines from each vertex to the center of the opposite side. They will intersect at the centroid.

To find the centroid of a triangle, you can follow these steps:

1. Determine the coordinates of the three vertices of the triangle. Let's say the vertices are A, B, and C, with coordinates (x1, y1), (x2, y2), and (x3, y3), respectively.

2. Calculate the average of the x-coordinates of the three vertices. This can be done by adding up the x-coordinates and dividing the sum by 3. Let's call this value x_centroid.

x_centroid = (x1 + x2 + x3) / 3

3. Similarly, calculate the average of the y-coordinates of the three vertices. This can be done by adding up the y-coordinates and dividing the sum by 3. Let's call this value y_centroid.

y_centroid = (y1 + y2 + y3) / 3

4. The centroid of the triangle is the point (x_centroid, y_centroid), which represents the intersection of the medians. These medians are straight lines drawn from each vertex to the center of the opposite side.

So, the steps above describe how to find the centroid mathematically. However, if you prefer a geometric approach, you can follow the link you mentioned (http://mathworld.wolfram.com/TriangleCentroid.html) and visually understand how drawing lines from each vertex to the center of the opposite side can help you locate the centroid of the triangle.

I hope this explanation helps you in finding the centroid of a triangle.