Let $g$ denote the centroid of triangle $abc$. if triangle $abg$ is equilateral with side length 2, then determine the perimeter of triangle $abc$.