document.write( "Question 1176261: You and your friends go out to lunch. Sandwiches cost $7 each and drinks cost $2 each. You buy a total of 10 items for lunch and spend a total of $40. Write a system of linear equations that describes this situation. Find the solution. \n" ); document.write( "
Algebra.Com's Answer #802737 by greenestamps(13200)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "Since they want a system of linear equations, we will use two variables.

\n" ); document.write( "x = number of sandwiches
\n" ); document.write( "y = number of drinks

\n" ); document.write( "7x = cost of the sandwiches at $7 each
\n" ); document.write( "2y = cost of the drinks at $2 each

\n" ); document.write( "The total number of items is 10:
\n" ); document.write( "\"x%2By+=+10\"

\n" ); document.write( "The total cost is $40:
\n" ); document.write( "\"7x%2B2y+=+40\"

\n" ); document.write( "Double the first equation and compare it to the second:

\n" ); document.write( "\"7x%2B2y+=+40\"
\n" ); document.write( "\"2x%2B2y+=+20\"

\n" ); document.write( "The difference is

\n" ); document.write( "\"5x+=+20\"
\n" ); document.write( "\"x+=+4\"

\n" ); document.write( "The number of sandwiches ordered was x=4.

\n" ); document.write( "Informally, that means the number of drinks was 10-4 = 6.

\n" ); document.write( "Formally....

\n" ); document.write( "\"4%2By+=+10\"
\n" ); document.write( "\"y+=+10-4+=+6\"

\n" ); document.write( "
\n" ); document.write( "
\n" );