document.write( "Question 631436: Suppose Wal-Mart stock is selling at $59 a share and Mattel stock is selling at $28 a share. Amy has a maximum of $6000 to invest. She wishes to purchase four times as many shares of Wal-Mart as of Mattel. Only whole shares of stock can be purchased.
\n" ); document.write( "a) How many shares of each will she purchase?
\n" ); document.write( "b) How much money will be left over?
\n" ); document.write( "

Algebra.Com's Answer #397574 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"+a+\" = shares of WM stock purchased
\n" ); document.write( "Let \"+b+\" = shares of M stock purchased
\n" ); document.write( "given:
\n" ); document.write( "\"+59a+%2B+28b+=+6000+\"
\n" ); document.write( "\"+a+=+4b+\"
\n" ); document.write( "-----------
\n" ); document.write( "By substitution:
\n" ); document.write( "\"+59%2A4b+%2B+28b+=+6000+\"
\n" ); document.write( "\"+236b+%2B+28b+=+6000+\"
\n" ); document.write( "\"+264b+=+6000+\"
\n" ); document.write( "\"+b+=+22.73+\"
\n" ); document.write( "and
\n" ); document.write( "\"+a+=+4b+\"
\n" ); document.write( "\"+a+=+90.91+\"
\n" ); document.write( "Can she buy 91 shares of WM and 22 shares of M?
\n" ); document.write( "\"+59a+%2B+28b+=+6000+\"
\n" ); document.write( "\"+59%2A91+%2B+28%2A22+=+5369+%2B+616+\"
\n" ); document.write( "\"+5369+%2B+616+=+5985+\" yes
\n" ); document.write( "She will have \"+6000+-+5985+=+15+\" dollars left over
\n" ); document.write( "She can't buy another share of either stock,
\n" ); document.write( "since that would put her over $6000
\n" ); document.write( "
\n" );