document.write( "Question 1102784: Mary Jo spends $800 to buy stock in two companies. She pays $12 a share to one of the companies and $22 a share to the other. If she ends up with a total of 50 shares, how many shares did she buy at $12 a share and how many did she buy at $22 a share? \n" ); document.write( "
Algebra.Com's Answer #717522 by jorel1380(3719)\"\" \"About 
You can put this solution on YOUR website!
Let a and b be the first company and second company, respectively. Then:
\n" ); document.write( "a+b=50
\n" ); document.write( "12a+22b=800
\n" ); document.write( "Solve for a and b
\n" ); document.write( "☺☺☺☺
\n" ); document.write( "
\n" );