A store sells two types of notebooks: regular notebooks and deluxe notebooks. The cost of a regular notebook is $2, while the cost of a deluxe notebook is $5. If a student buys a total of 8 notebooks for $32, how many deluxe notebooks did the student buy?
Let r represent the number of regular notebooks and d represent the number of deluxe notebooks. You can express this scenario with a system of equations:
$$ r + d = 8 $$
$$ 2r + 5d = 32 $$