Miguel bought n packs of pencils. Each pack has 12 pencils. Write an equation to represent the total number of pencils p that Miguel bought.

p = 12n