A sailing course is in the shape of an equilateral triangle. If the course has an altitude of 9 mi, what is the perimeter of the triangle?