Gina paints beach scenes on notecards. She sells packages of 8 notecards for $8 for one package, $16 for 2 packages, and $24 for 3 packages. Which equation is the rule for the pattern if n is the number of packages and d is the selling price in dollars?