1. Cut a 20cm long iron wire into two sections, and make a square with the length of each section of iron wire as the perimeter. To make the sum of the two squares equal to 17cm ^ 2, what are the lengths of the two sections of iron wire? 2. The fruit shop paid 1500 yuan to buy a batch of fruit, which was priced at 50% of the profit. No one bought it, and decided to sell it at a discount, but still no one bought it. As a result, it sold out after another discount. After settlement, the total profit of this batch of fruit was 500 yuan. If the two discounts were the same, how much discount was given each time? (accurate to 0.1 fold)

1. Cut a 20cm long iron wire into two sections, and make a square with the length of each section of iron wire as the perimeter. To make the sum of the two squares equal to 17cm ^ 2, what are the lengths of the two sections of iron wire? 2. The fruit shop paid 1500 yuan to buy a batch of fruit, which was priced at 50% of the profit. No one bought it, and decided to sell it at a discount, but still no one bought it. As a result, it sold out after another discount. After settlement, the total profit of this batch of fruit was 500 yuan. If the two discounts were the same, how much discount was given each time? (accurate to 0.1 fold)

One is 4cm and the other is 16cm
Let one side of the square be a and the other side be B
a^2+b^2=17
4a+4b=20
The solution is a = 1 or 4
B = 4 or 1