Two triangles are similar with a scale factor of 3.If the smaller triangle has a perimeter of 12 cm, what is the perimeter of the larger triangle?