write an equation to answer the question below.
Lela purchased 3 mechanical pencils and a notebook that cost $5. Her purchase totaled $11. How much was each pencil? Use p to represent the cost of each pencil.