document.write( "Question 261101: The number of calories in a piece of pie is 20 less than three times the number of calories in a scoop of ice cream. The pie and ice cream together have 500 calories. How many calories are in each?\r
\n" ); document.write( "\n" ); document.write( "I don't understand how to put the equation together.
\n" ); document.write( "

Algebra.Com's Answer #192353 by stanbon(75887)\"\" \"About 
You can put this solution on YOUR website!
The number of calories in a piece of pie is 20 less than three times the number of calories in a scoop of ice cream.
\n" ); document.write( "The pie and ice cream together have 500 calories. How many calories are in each?
\n" ); document.write( "-------------
\n" ); document.write( "Equations:
\n" ); document.write( "Quantity Equation: p + i = 500
\n" ); document.write( "Quantity Equation: p = 3i -20
\n" ); document.write( "-------------------------------------
\n" ); document.write( "Substitute for \"p\" and solve for \"i\":
\n" ); document.write( "3i-20 + i = 500
\n" ); document.write( "4i = 520
\n" ); document.write( "i = 130 (# of calories in ice cream)
\n" ); document.write( "---------------------------------
\n" ); document.write( "Since p+i = 500, p = 500-130 = 370 (# of calories in a piece of pie)
\n" ); document.write( "=======================================================================
\n" ); document.write( "Cheers,
\n" ); document.write( "Stan H.
\n" ); document.write( "
\n" ); document.write( "
\n" );