a student buys x pens for $2 each and a notebook for $5. if she spends $21 in total, how many pens did she…

a student buys x pens for $2 each and a notebook for $5. if she spends $21 in total, how many pens did she buy?
Answer
Explanation:
Step1: Set up the equation
The cost of ( x ) pens at $2 each is ( 2x ) dollars, and the notebook costs $5. The total cost is $21, so the equation is ( 2x + 5 = 21 ).
Step2: Solve for ( x )
Subtract 5 from both sides: ( 2x = 21 - 5 = 16 ). Then divide both sides by 2: ( x = \frac{16}{2} = 8 ).
Answer:
8