Answer:
47 pencil
Explanation:
Let x represent the number of pencils that were bought. Since equal number of erasers where also purchased, hence x erasers were purchased.
Cost of pencils = Rs 20 per pencil * x pencils = 20x
Cost of erasers = Rs 4 per eraser * x eraser = 4x
40% profit was made on pencils, hence:
Profit on pencils = 40% of cost price = 0.4 * 20x = 8x
50% profit was made on erasers, hence:
Profit on eraser = 50% of cost price = 0.5 * 4x = 2x
Since the total profit from pencil and eraser was Rs 470, hence:
8x + 2x = 470
10x = 470
x = 47
Therefore he purchased 47 pencil