Question 1058466
Let x represent the number of pumpkin pies that Kylie buys, and let y represent the number of apple pies.


The total number of pies purchased is x + y = 12


The total cost is 4x + 2y = 30


Solving the the first equation for y gives:


y = 12 - x


Substituting "12 - x" in place of y in the equation 4x + 2y = 30 gives:


4x + 2(12 - x) = 30


4x + 24 - 2x = 30


2x + 24 = 30


2x = 6


x = 3


Thus, she has purchased 3 pumpkin pies, and 12 - 3 = 9 apple pies.


If Kylie wishes to purchase two pecan pies at a cost of $1 each, that would add $2 
to the total cost. Since Kylie wants to keep the same total price, the quantity of 
pumpkin and apple pies must be reduced by $2. The only way to do this is to 
remove one apple pie from the original order.


The new order would be 3 pumpkin pies, 8 apple pies, and 2 pecan pies.