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 ?
"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 ."
subtract(multiply(4.00, 12), 40.00)