Elena purchased Brand X pens for $4.00 apiece and brand Y for $2.80 apiece. If Elena purchased a total of 12 of these pens for $40.00, how many brand X pens did she purchase? Choose the correct choice from the following options
A) 4
B) 5
C) 6
D) 7
E) 8

Rationale: "4 x + 2.8 y = 42 - - > multiply by 2.5 ( to get the integers ) - - > 10 x + 7 y = 105 - - > only one positive integers solutions x = 8 and y = 5 ( how to solve : 7 y must have the last digit of 5 in order the last digit of the sum to be 5 ) . answer : e ."
Answer: E