Numbers Finder by Sum and Difference

Input the sum and difference of two numbers to instantly calculate their values!

Calculate Two Numbers from Their Sum and Difference

Result

How to Calculate Two Numbers from Their Sum and Difference

Given:

  • \( S \): the sum of the two numbers, \( S = x + y \)
  • \( D \): the difference between the two numbers, \( D = x - y \)

Follow these steps:

  • Calculate the first number (\( x \)): \( x = \frac{S + D}{2} \)
  • Calculate the second number (\( y \)): \( y = \frac{S - D}{2} \)

Examples

Example 1: Find two numbers with a sum of 200 and a difference of 38

Solution:

\( x = \frac{200 + 38}{2} = 119 \)

\( y = \frac{200 - 38}{2} = 81 \)

Result: The two numbers are 119 and 81.

Example 2: Find two numbers with a sum of 5642 and a difference of 340

Solution:

\( x = \frac{5642 + 340}{2} = 2991 \)

\( y = \frac{5642 - 340}{2} = 2651 \)

Result: The two numbers are 2991 and 2651.

Example 3: Find two numbers with a sum of 480 and a difference of 140

Solution:

\( x = \frac{480 + 140}{2} = 310 \)

\( y = \frac{480 - 140}{2} = 170 \)

Result: The two numbers are 310 and 170.