Question 1190565
<br>
The answer is given in the statement of the problem: the cost of one apple pie and one pumpkin pie is $10+$7=$17.<br>
Assuming the actual question was how many pies of each type he sold, here is a quick mental solution, if formal algebra is not required....<br>
If all 34 pies were apple pies, the cost would have been $340;
The actual cost was $295, which is $45 less than that;
Each pumpkin pie costs $3 less than each apple pie;
The number of pumpkin pies sold was 45/3=15<br>
ANSWER: 15 pumpkin pies; 34-15=19 apple pies<br>