A rectangle and a square have equal areas. The rectangle has length of 9 cm and width 4 cm. What is the perimeter of the square in centimeters?