Part 1:
First figure out how many apples she has. She bought 3 bags, each bag holds 12 apples. 3 * 12 = 36. So she has 36 apples in total. She needs 8 apples to make one pie. We can divide this by the total number of apples to figure out how many pies she can make.
36 / 8 = 4.5
So she can make 4.5 pies, or since this is real-life context, she can only make 4 pies.
Part 2:
To make 6 pies, she needs to have 8 apples for each pie. 8 * 6 = 48. So she needs 48 apples. She only has 36 apples now, 48 - 36 = 12. So she needs to buy 12 more apples if she wants to make 6 pies. Each bag holds 12 apples, so she needs to buy 1 more bag of apples.