document.write( "Question 1186985: Hi
\n" ); document.write( "Mary bought some shoes and dresses for $296.00. The dress cost $24 the shoes $20 . How many of each did she buy.\r
\n" ); document.write( "\n" ); document.write( "Thanks
\n" ); document.write( "

Algebra.Com's Answer #817954 by greenestamps(13203)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "Here first is a refinement, using logical analysis and simple mental arithmetic, of the informal solution shown by the other tutor...

\n" ); document.write( "The total cost of all the items is $296, and the total cost of the shoes, at $20 per pair, is a multiple of $10.
\n" ); document.write( "That means the total cost of the dresses, at $24 each, must be a number with units digit 6.
\n" ); document.write( "That means the number of dresses must be 4, 9, 14, ...
\n" ); document.write( "Since 14 dresses at $24 each is more than $296, there are exactly two solutions -- with either 4 or 9 dresses.

\n" ); document.write( "

\n" ); document.write( "And here is how to find the solution(s) using formal mathematics....

\n" ); document.write( "x = # of dresses at $24 each
\n" ); document.write( "y = # of (pairs of) shoes at $20 each

\n" ); document.write( "The total cost was $296:

\n" ); document.write( "\"24x%2B20y=296\"

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

\n" ); document.write( "\"6x%2B5y=74\"

\n" ); document.write( "Solve the equation for one variable

\n" ); document.write( "\"5y=-6x%2B74\"

\n" ); document.write( "\"y=%28-6x%2B74%29%2F5\"

\n" ); document.write( "Perform the indicated division as quotient plus remainder, using integers -- instead of fractions

\n" ); document.write( "\"y=%28%28-5x%2B70%29%2B%28-x%2B4%29%29%2F5+=+%28-5x%2B70%29%2F5%2B%28-x%2B4%29%2F5\"
\n" ); document.write( "\"y=%28-x%2B14%29%2B%28-x%2B4%29%2F5\"

\n" ); document.write( "In that form of the equation, x and y are non-negative integers, and 14 is an integer, so \"%28-x%2B4%29%2F5\" has to be an integer.

\n" ); document.write( "Inspection shows that x must be 4, or 4 plus or minus some multiple of 5.

\n" ); document.write( "Use that and the knowledge that x and y are both non-negative integers to find the solution(s).

\n" ); document.write( "(1) x=4

\n" ); document.write( "\"y=%28-4%2B14%29%2B%28-4%2B4%29%2F5+=+10%2B0+=+10\"

\n" ); document.write( "ANSWER: x=4 dresses and y=10 pairs of shoes

\n" ); document.write( "CHECK: 4($24)+10($20) = $96+$200 = $296

\n" ); document.write( "(2) x=9

\n" ); document.write( "\"y=%28-9%2B14%29%2B%28-9%2B4%29%2F5+=+5-1=4\"

\n" ); document.write( "ANSWER: x=9 dresses and y=4 pairs of shoes

\n" ); document.write( "CHECK: 9($24)+4($20) = $216+$80 = $296

\n" ); document.write( "(3) x=14

\n" ); document.write( "14($24) is greater than $296...

\n" ); document.write( "There are exactly two answers:
\n" ); document.write( "(1) 4 dresses and 10 pairs of shoes
\n" ); document.write( "(2) 9 dresses and 4 pairs of shoes

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