Answer:
Each pencil cost $2
Explanation:
Let the cost of 1 pencil be p
So, cost of 3 pencils = 3p
Cost of 1 notebook = $6
We are given that Alan bought 3 pencils and a notebook.
So, Total cost for Alan =

We are given that he spent a total of $12.
So,





Hence each pencil cost $2