What are the four numbers?
- The sum of the whole is 25:
$a + b + c + d = 25$
- Large and small are different by 4:
$x - y = 4$ where $x > y$ and $x$ could be ($a$ or $b$) and y could be ($b$ or $d$)
- The first is 2 times the fourth:
$(a = 2d) ... 2d + b + c + d = 25 => 3d + b + c = 25$
$(c = a = 2d) ... 2d + b + 2d + d = 25 => 5d + b = 25$
The step 2 is the key to solve the problem. Just replace a, b or d for x and y (excluding c since c = a
)...
You will find 2 "integer" solutions:
Solution 1:
when $x = a = 2d$, and $y = d$
$x - y = 4 => 2d - d = 4 => d = 4$
Replace that in the last equation:
$5d + b = 25 => 5*4 + b = 25 => 20 + b = 25 => b = 5$
Solution: $a = 8, b = 5, c = 8, d = 4$
Solution 2: when x = b
, and y = a = 2d
b - a = 4 => b = 4 + a => same as => b = 4 + 2d
Replace that in the last equation, to find d:
5d + b = 25 => 5d + (4 + 2d) = 25 => 7d = 25 - 4 => 7d = 21 => d = 3
And then in the case equation, to find b:
b = 4 + 2*3 => b = 10
- a = 2d = 2*3 = 6
- b = 10
- c = 2d = 6
- d = 3
I have to remove this 2nd solution since violates the rule #2. 10-3 = 7... in other words, y
can't be a
since a
is not the smallest (a > d
), Thanks @Rubio.
All the possible cases are:
* $a - b = 4$, it is possible $a > b$ (no-integer solution)
* $a - d = 4$, we are sure $a > d$ (integer solution)
* $b - d = 4$, it is possible $b > d$ (no-integer solution)
Note these are NOT a valid cases:
* $b - a = 4$, we are sure $a$ is NOT the smallest, $a > d$ (error for solution 2)
* $d - b = 4$, we are sure $d$ is NOT the largest, $a > d$
* $a - c = 4$, impossible $a = c$
* $d - a = 4$, impossible $a > d$