A rectangle has a length of 12 units and a width of 3 units. A square has the same area as this rectangle. What is the perimeter of the square?
18 units
20 units
24 units
36 units