Gabrielle cut a square cake vertically to make two rectangle slices. Each rectangle had a perimeter of 33 inches. How long is each side of the original square cake?