Subject: mathqa
Question: elena purchased brand x pens for $ 5.00 apiece and brand y for $ 2.80 apiece . if elena purchased a total of 12 of these pens for $ 42.00 , how many brand x pens did she purchase ?
Option: 
A: 4
B: 8
C: 5
D: 6
Answer: D