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