The answer depends on the range of numbers, which Mr. P and Mr. S. must know.
Dan F. was the first one of us to solve this
`X` = 13, `Y` = 16, Mr. P is given their
product, 208, and Mr. S is given their sum, 29.
(This works over a range of 3 through 100).