document.write( "Question 1058466: Kylie was buying pies at the store for her co-workers on Thanksgiving. She needs a total of 12 pies. The store sells pumpkin pies for $4 a pie and apple pies for $2 a pie. If Kylie ended up spending $30 on pies alone, how many of each pie did she purchased?\r
\n" ); document.write( "\n" ); document.write( "1. Write and solve a systems of equations representing this situation.
\n" ); document.write( "2. If Kylie wanted to add two pecan pies to her order for $1 each and maintain the same total cost, how much of each pie does she end up getting?\r
\n" ); document.write( "\n" ); document.write( "Checking my answer for this, I created it myself. Could you show the steps in solving this?
\n" ); document.write( "

Algebra.Com's Answer #673580 by solve_for_x(190)\"\" \"About 
You can put this solution on YOUR website!
Let x represent the number of pumpkin pies that Kylie buys, and let y represent the number of apple pies.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The total number of pies purchased is x + y = 12\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The total cost is 4x + 2y = 30\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Solving the the first equation for y gives:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "y = 12 - x\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Substituting \"12 - x\" in place of y in the equation 4x + 2y = 30 gives:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "4x + 2(12 - x) = 30\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "4x + 24 - 2x = 30\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "2x + 24 = 30\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "2x = 6\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x = 3\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Thus, she has purchased 3 pumpkin pies, and 12 - 3 = 9 apple pies.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If Kylie wishes to purchase two pecan pies at a cost of $1 each, that would add $2
\n" ); document.write( "to the total cost. Since Kylie wants to keep the same total price, the quantity of
\n" ); document.write( "pumpkin and apple pies must be reduced by $2. The only way to do this is to
\n" ); document.write( "remove one apple pie from the original order.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The new order would be 3 pumpkin pies, 8 apple pies, and 2 pecan pies.
\n" ); document.write( "
\n" );