Answer and Step-by-step explanation:
Each package has 12 pencils
total number of pencils Sarah purchased: n = 12p
n = total number of pencils 
p = number of packages
n depends on p, because the total number of pencils dependos on how many packages she will buy, so:
independent variable: p
dependent variable: n
╔═══╦══════════╦════╗ 
║ p ║ n = 12p ║ n ║ 
╠═══╬══════════╬════╣ 
║ 3 ║ n = 12*3 ║ 36 ║ 
╠═══╬══════════╬════╣ 
║ 4 ║ n = 12*4 ║ 48 ║ 
╠═══╬══════════╬════╣ 
║ 5 ║ n = 12*5 ║ 60 ║ 
╠═══╬══════════╬════╣ 
║ 6 ║ n = 12*6 ║ 72 ║ 
╠═══╬══════════╬════╣ 
║ 7 ║ n = 12*7 ║ 84 ║ 
╚═══╩══════════╩════╝