Triangles are fundamental shapes in geometry, consisting of three line segments that connect three non-collinear points. Among the various points…