document.write( "Question 778407: Ahmed has half of a treasure map, which indicates that the treasure is buried in the desert 2w+6 paces from Castle Rock. Vanessa has the other half of the map. Her half indicates that to find the treasure, one must get to Castle Rock, walk x pases to the north, and then walk 2x+4 paces to the east. If they share their information, then they can find x and save a lot of digging. What is x? \n" ); document.write( "
Algebra.Com's Answer #474678 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!
Ahmed has half of a treasure map, which indicates that the treasure is buried in the desert 2w+6 paces from Castle Rock.
\n" ); document.write( " Vanessa has the other half of the map. Her half indicates that to find the treasure, one must get to Castle Rock, walk x paces to the north, and then walk 2x+4 paces to the east.
\n" ); document.write( " If they share their information, then they can find x and save a lot of digging. What is x?
\n" ); document.write( ":
\n" ); document.write( "This is a pythag problem; a^2 + b^2 = c^2
\n" ); document.write( "Starting from Castle Rock: a = x; b = (2x+4); c = (2x+6)
\n" ); document.write( "Therefore we have
\n" ); document.write( "x^2 + (2x+4)^2 = (2x+6)^2
\n" ); document.write( "FOIL
\n" ); document.write( "x^2 + 4x^2 + 16x + 16 = 4x^2 + 24x + 36
\n" ); document.write( "Subtract 4x^2 fro both sides and combine on the left
\n" ); document.write( "x^2 + 16x - 24x + 16 - 36 = 0
\n" ); document.write( "x^2 - 8x - 20 = 0
\n" ); document.write( "Factors to
\n" ); document.write( "(x-10)(x+2) = 0
\n" ); document.write( "The positive solution
\n" ); document.write( "x = 10
\n" ); document.write( ":
\n" ); document.write( "So we have go 10 paces north, 24 paces east, that point is 26 paces from C.R.
\n" ); document.write( "You can check this out using pythag
\n" ); document.write( "
\n" );