The length of equal sides of an isosceles triangle is 9 cm. If the length of the third side is 3 cm, what is the perimeter of the triangle?