document.write( "Question 456630: Anna bought two melons and one pineapple for $8.96. If she had purchased one melon and two pineapples, she would have spent $1.49 more. What is the price of a melon? of a pineapple? \n" ); document.write( "
Algebra.Com's Answer #313352 by htmentor(1343)\"\" \"About 
You can put this solution on YOUR website!
Anna bought two melons and one pineapple for $8.96. If she had purchased one melon and two pineapples, she would have spent $1.49 more. What is the price of a melon? of a pineapple?
\n" ); document.write( "========================================================
\n" ); document.write( "Let m = the cost of a melon
\n" ); document.write( "Let p = the cost of a pineapple
\n" ); document.write( "Then we can write the following two equations:
\n" ); document.write( "2m + p = 8.96 [1]
\n" ); document.write( "m + 2p = 8.96 + 1.49 = 10.45 [2]
\n" ); document.write( "Solve for p in [1] and substitute into [2]:
\n" ); document.write( "p = 8.96 - 2m
\n" ); document.write( "m + 2(8.96-2m) = 10.45
\n" ); document.write( "Solve for m:
\n" ); document.write( "m + 17.92 - 4m = 10.45
\n" ); document.write( "3m = 7.47
\n" ); document.write( "m = 2.49
\n" ); document.write( "Then p = 8.96 - 2(2.49) = 3.98
\n" ); document.write( "So the cost of a melon is $2.49 and the cost of a pineapple is $3.98
\n" ); document.write( "
\n" ); document.write( "
\n" );