Question 841429
What was cost of each pencil?
You should read the problem.
There were three different prices.
10 pencils cost 50 cents each.
20 pencils cost 25 cents each 
20 pencils cost  15 cents each
If you mean what was the total cost, you should say so.