The length of a square tile is 3w centimeters. Alice places 4 square tiles in a row to form a rectangle. Find the perimeter of the rectangle in terms of w.