# Secret Order

#### Farmtalk

##### Active member
Here is another challenge that I thought was fun A man wanted to get into his work building, but he had forgotten his code. However, he did remember five clues. These are what those clues were:

The fifth number plus the third number equals fourteen.

The fourth number is one more than the second number.

The first number is one less than twice the second number.

The second number plus the third number equals ten.

The sum of all five numbers is 30.

What were the five numbers and in what order?

#### MarkFL

Staff member
Let $A,B,C,D,E$ be the five numbers, in that order. Thus, the clues may be written as:

(1) $$\displaystyle C+E=14$$

(2) $$\displaystyle D=B+1$$

(3) $$\displaystyle A=2B-1$$

(4) $$\displaystyle B+C=10$$

(5) $$\displaystyle A+B+C+D+E=30$$

Substituting (1)-(4) into (5), we find:

$$\displaystyle (2B-1)+B+(B+1)+(14)=30$$

$$\displaystyle 4B=16\,\therefore\,B=4\,\therefore\,D=5\, \therefore\,A=7\,\therefore\,C=6\,\therefore\,E=8$$

Hence the code is: $74658$

#### Farmtalk

##### Active member
Correct! I thought this was a rather tough puzzle! It took me forever to figure it out!