Find the two positive numbers that satisfy the given requirements:
"The sum is S and the product is a maximum."
"The sum is S and the product is a maximum."