document.write( "Question 143781: 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:\r
\n" ); document.write( "\n" ); document.write( "The fifth number plus the third number equals fourteen.\r
\n" ); document.write( "\n" ); document.write( "The fourth number is one more than the second number.\r
\n" ); document.write( "\n" ); document.write( "The first number is one less than twice the second number.\r
\n" ); document.write( "\n" ); document.write( "The second number plus the third number equals ten.\r
\n" ); document.write( "\n" ); document.write( "The sum of all five numbers is 30.\r
\n" ); document.write( "\n" ); document.write( "What were the five numbers and in what order?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #104645 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( ":
\n" ); document.write( "Let code (in order) = a,b,c,d,e
\n" ); document.write( ":
\n" ); document.write( "Try to get everything in terms of c, seems like a good approach
\n" ); document.write( ":
\n" ); document.write( "Write an equation for all five statements:
\n" ); document.write( ":
\n" ); document.write( "1.\"The fifth number plus the third number equals fourteen.\"
\n" ); document.write( "e + c = 14
\n" ); document.write( "or
\n" ); document.write( "e = (14-c)
\n" ); document.write( ":
\n" ); document.write( "2.\"The fourth number is one more than the second number.\"
\n" ); document.write( "d = b + 1
\n" ); document.write( ":
\n" ); document.write( "3.\"The first number is one less than twice the second number.\"
\n" ); document.write( "a = 2b - 1
\n" ); document.write( ":
\n" ); document.write( "4.\"The second number plus the third number equals ten.\"
\n" ); document.write( "b + c = 10
\n" ); document.write( "or
\n" ); document.write( "b = (10-c)
\n" ); document.write( ":
\n" ); document.write( "5.\"The sum of all five numbers is 30.\"
\n" ); document.write( "a + b + c + d + e = 30
\n" ); document.write( ":
\n" ); document.write( "Using Statements 2 and 4 we can substitute (10-c) for b
\n" ); document.write( "d = b + 1
\n" ); document.write( "d = (10-c) + 1
\n" ); document.write( "d = (11-c)
\n" ); document.write( ":
\n" ); document.write( "Using equations from statements 3 & 4, we can substitute (10-c) for b again:
\n" ); document.write( "a = 2b -1
\n" ); document.write( "a = 2(10-c) - 1
\n" ); document.write( "a = 20 - 2c - 1
\n" ); document.write( "a = (19-2c)
\n" ); document.write( ":
\n" ); document.write( "We got a, b, d, and e in terms of c, substitute in equation 5
\n" ); document.write( "a + b + c + d + e = 30
\n" ); document.write( "(19-2c) + (10-c) + c + (11-c + (14-c) = 30
\n" ); document.write( "simplify
\n" ); document.write( "-2c - c + c - c - c + 19 + 10 + 14 + 11 = 30
\n" ); document.write( "-4c + 54 = 30
\n" ); document.write( "-4c = 30 - 54
\n" ); document.write( "-4c = -24
\n" ); document.write( "4c = 24; multiplied equation by -1
\n" ); document.write( "c = 24/4
\n" ); document.write( "c = +6
\n" ); document.write( ":
\n" ); document.write( "What were the five numbers and in what order
\n" ); document.write( ";
\n" ); document.write( "Using the equations find the other numbers:
\n" ); document.write( "a = 19 - 2(6)
\n" ); document.write( "a = 7
\n" ); document.write( ":
\n" ); document.write( "b = 10 - 6
\n" ); document.write( "b = 4
\n" ); document.write( ":
\n" ); document.write( "c = 6
\n" ); document.write( ":
\n" ); document.write( "d = 11-6
\n" ); document.write( "d = 5
\n" ); document.write( ":
\n" ); document.write( "e = 14 - 6
\n" ); document.write( "e = 8
\n" ); document.write( ":
\n" ); document.write( "See if they satisfy statement 5
\n" ); document.write( "7 + 4 + 6 + 5 + 8 = 30
\n" ); document.write( ":
\n" ); document.write( "His code number should be 74658
\n" ); document.write( "
\n" );