Prime

#### Prepinsta Prime

Video courses for company/skill based Preparation

(Check all courses)
Get Prime Video
Prime

#### Prepinsta Prime

Purchase mock tests for company/skill building

(Check all mocks)
Get Prime mock

# Sum and Product Confusion Puzzle

## Sum and Product Confusion Puzzle

Sum Sam and Product Pete are in class when their teacher gives Sam the Sum of two numbers and Pete the product of the same two numbers (these numbers are greater than or equal to 2). They must figure out the two numbers.
• Sam: I don’t know what the numbers are Pete.
• Pete: I knew you didn’t know the numbers… But neither do I.
• Sam: In that case, I do know the numbers.
What are the numbers?

## Solution

Assume numbers are a and b
As Sam has sum of no. a + b = x (which has given )—————(1)
and Pete has product a*b = y (given)

now,

$(a + b)^{2} = a^{2} + B^{2} + 2ab$

find out $a^{2} + b^{2}$ from above

now find

$a – b = \sqrt{a^{2} + b^{2} – 2ab}——————–(2)$

solve (1) and (2)

n get the a and b … it depends on x (sum) and y (product)

Finally we can say if you know sum (name) and product (name) you know the number(:P)