Skip to content
ChallengesIntermediate

Sum and Product

Sarah knows the sum of two numbers and Peter knows their product. From a short conversation between them, work out the numbers.


Two different integers x and y satisfy:

2 ≤ x < yandx + y ≤ 100

Sarah is told the sum x + y. Peter is told the product xy. Both know the rules above. Both reason perfectly, always tell the truth, and know that the other does too. The following conversation takes place:

Peter
“I don’t know the two numbers.”
Sarah
“I knew that you didn’t know.”
Peter
“I still don’t know them.”
Sarah
“Now I know them.”
Peter
“Now I know them too.”

What is xy?

Enter the result as a whole number.

Hint

Each line rules out some pairs. Keep track of what each person could have known at the moment they spoke.