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