Checking two amounts recovered from their sum and difference
Given the sum of two amounts and how much the first exceeds the second, add or subtract the two facts and halve to get each amount.
Two facts, two unknowns
Call the amounts x and y. The sum says x plus y equals 50. The difference says x minus y equals 14. Two independent facts about two unknowns settle both. The trick is that adding the two equations cancels y, and subtracting them cancels x. Each of those combinations leaves one unknown, multiplied by two. After dividing by two, the amounts follow. The problem is old: sum-and-difference questions appear in Old Babylonian mathematical texts, and the same elimination idea is still taught in introductory algebra.
Adding the two facts
Adding x plus y equals 50 to x minus y equals 14 gives 2x equals 64. The basic calculator confirms 64 for 50 plus 14. The second amount has cancelled, because it was added once and subtracted once. What remains is twice the first amount, which also equals the sum plus the difference. Keep the sign of the difference tied to the order of the amounts: it is the first minus the second, so the first amount is the larger one.
Halving to get the first amount
Dividing 64 by 2 gives 32, as the basic calculator shows. The first amount is 32. An equivalent view is that the first amount is the sum divided by two, plus the difference divided by two. Half the sum is 25, half the difference is 7, and 25 plus 7 is 32. Seeing it as the midpoint plus half the gap is often easier to hold in mind: the two amounts sit symmetrically around 25, 7 above and 7 below.
Getting the second amount
Subtract the first amount from the sum: 50 minus 32 is 18 on the basic calculator. The second amount is 18. Checking against the difference, 32 minus 18 is 14, and checking the sum, 32 plus 18 is 50. Both original facts hold. A different route is to subtract the two equations, giving 2y equals 36, and halving it. Both routes reach 18, and doing both is a cheap way to catch an arithmetic slip. The subtraction route uses 50 minus 14, which the basic calculator gives as 36, and half of 36 is 18. If the two routes disagree, recheck the sign of the difference first, since a flipped sign swaps the two answers. Then recheck the addition and subtraction of the two original equations. A third check, that the pair satisfies both original statements, settles any remaining doubt, and it takes only two short calculations.
A second example with a negative difference
The sum is 100, and the first amount is 20 less than the second, so the difference first minus second is negative 20. Adding gives 2x equal to 80, so x is 40. The second amount is 100 minus 40, which is 60. The sign carries the information about which amount is larger. Writing the difference as first minus second every time keeps the sign meaningful. Reversing the labels would give the same pair with the amounts swapped. The check is the same as before: 40 plus 60 is 100, and 40 minus 60 is negative 20. Whenever the sign of the stated difference is negative, expect the first amount to be the smaller one, and confirm that your answer respects this. A positive difference with a first amount that came out smaller is a sign that an equation was set up backward, and the fix is to redo the elimination with the signs written out.
The midpoint view
The two amounts sit symmetrically around their average. With a sum of 50, the average is 25, and a difference of 14 puts one amount 7 above that average and the other 7 below. The basic calculator gives 25 for 50 divided by 2 and 7 for 14 divided by 2, and then 25 plus 7 is 32 and 25 minus 7 is 18. This view needs no equations, only the idea that a pair is described by its center and its spread. It also explains why only the sum and difference matter: they are the center, doubled, and the spread, doubled. Many mental-arithmetic tricks, such as finding two numbers whose sum and gap are known, use exactly this picture.
Parity and whole-number counts
When the amounts must be whole numbers, the sum and difference need the same parity. A sum of 51 with a difference of 14 gives 2x equal to 65, so x is 32.5 and y is 18.5. No pair of whole numbers has that sum and difference. The reason is that the sum and difference of two integers are either both even or both odd. A mismatch means the data are inconsistent for counts, though the same numbers could be valid for lengths or money.
Where the pattern appears
The sum-and-difference structure appears in splitting a bill when you know the total and how much one person paid more, in age puzzles, and in finding two numbers from their average and spread. If you know the average and the spread, the two numbers are the average plus or minus half the spread. In the example, the average is 25 and half the spread is 7. This viewpoint also underlies certain techniques in mental arithmetic and in the algebra of the difference of squares.
What the algebra leaves open
The solution as written allows any real values, so negative and fractional amounts can appear. If you are counting objects, negative results are not valid even when the arithmetic works, and you must state the domain in advance. If the difference exceeds the sum, the smaller amount comes out negative. For instance, a sum of 10 and a difference of 14 give amounts of 12 and negative 2. The algebra does not decide whether that answer makes sense, and the context must. Decide the allowed domain before solving: whole numbers, nonnegative numbers, or any real values. With that decision written down, an answer such as negative 2 can be rejected or accepted for a stated reason. Also note that the elimination works unchanged for any pair of facts of this shape, including a sum of lengths and a gap between them, or a combined mass and a mass difference, so the same four steps apply whatever the quantities are, provided both are in one unit.
Try your own values with the Single linear equation solver.
Try your own values with the Sum and signed difference calculator.
Reproduce the checks
Twice the first amount
Open the Basic calculator and enter:
- First number
50- Operation
add- Second number
14
Expected output:
Result
64The second amount cancels when the equations are added.
First amount
Open the Basic calculator and enter:
- First number
64- Operation
divide- Second number
2
Expected output:
Result
32Divide the doubled amount by two.
Second amount
Open the Basic calculator and enter:
- First number
50- Operation
subtract- Second number
32
Expected output:
Result
18The sum supplies the remaining amount.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.