document.write( "Question 373827: A doctor's prescription for a daily intake of liquid containing 40 mg of vitamin C and 30 mg of vitamin D. Your pharmacy stocks two liquids that can be used. One contains 20% of vitamin C and 30% vitamin D and the other contains 40% of vitamin C and 20% vitamin D. How many milligrams of each liquid should be mixed to fill the prescription? \n" ); document.write( "
Algebra.Com's Answer #266145 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"a\" = mg of the 1st liquid to be used
\n" ); document.write( "Let \"b\" = mg of the 2nd liquid to be used
\n" ); document.write( "given:
\n" ); document.write( "(1) \".2a+%2B+.4b+=+40\"
\n" ); document.write( "(2) \".3a+%2B+.2b+=+30\"
\n" ); document.write( "-----------------------
\n" ); document.write( "Multiply both sides by \"10\".
\n" ); document.write( "(1) \"2a+%2B+4b+=+400\"
\n" ); document.write( "(2) \"3a+%2B+2b+=+300\"
\n" ); document.write( "Multiply both sides of (2) by \"2\"
\n" ); document.write( "and subtract (1) from (2)
\n" ); document.write( "(2) \"6a+%2B+4b+=+600\"
\n" ); document.write( "(1) \"-2a+-4b+=+-400\"
\n" ); document.write( "\"4a+=+200\"
\n" ); document.write( "\"a+=+50\"
\n" ); document.write( "and, since
\n" ); document.write( "(2) \"3a+%2B+2b+=+300\"
\n" ); document.write( "\"150+%2B+2b+=+300\"
\n" ); document.write( "\"2b+=+150\"
\n" ); document.write( "\"b+=+75\"
\n" ); document.write( "50 mg of the 1st liquid and 75 mg of the 2nd liquid
\n" ); document.write( "should be used\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );