document.write( "Question 938102: Mary wants to buy one large pizza, one medium pizza, and three drinks. The drinks cost p dollars each, the medium pizza cost two times as much as one drink, and the large pizza costs three times as much as one drink. If Mary started with 30 dollars, how much money would she have left after making all of her purchases? Give your answer as an expression of p. \n" ); document.write( "
Algebra.Com's Answer #571434 by Stitch(470)\"\" \"About 
You can put this solution on YOUR website!
Given: 1 drink = p
\n" ); document.write( "-------------------
\n" ); document.write( "1 medium pizza = 2p
\n" ); document.write( "1 large pizza = 3p\r
\n" ); document.write( "\n" ); document.write( "\"30+-+1large+-+1medium+-+3+drinks\"
\n" ); document.write( "Substitute the p values in
\n" ); document.write( "\"30+-+3p+-+2p+-+3%2Ap\"
\n" ); document.write( "\"30+-+3p+-+2p+-+3p\"
\n" ); document.write( "Combine like terms
\n" ); document.write( "\"30+-+8p\"
\n" ); document.write( "Y = 30-8P
\n" ); document.write( "Where Y is the amount of money that is left over
\n" ); document.write( "
\n" );