The area of a square is equivalent to the area of a rectangle. If the side lengths of the rectangular three units and 12 units what is the perimeter of the square?