Answer:
52.
Explanation:
Let x be the number of total pies before the bake sale started.
We have been given that at the beginning of the bake sale, Mary set aside 2 pies for herself.
So the pie left for sale will be x-2.
We are also told that Karen bought half of the remaining pies for her birthday party, so number of pies bought by Karen will be:
.
Further, we are told that 10 more pies were sold during the sale, so number of total pies sold and used by Mary will be:

As there were 15 pies remaining, so we can represent total number of pies in an equation as:


Let us have a common denominator.



Let us multiply both sides of our equation by 2.



Therefore, there were 52 pies before the bake sale started.