Fabrizio cut a square paper vertically to make two rectangle pieces. Each rectangle had a perimeter of 57 inches. How long is each side of the original square paper?