a certain fruit stand sold apples for $ 0.80 each and bananas for $ 0.70 each . if a customer purchased both apples and bananas from the stand for a total of $ 6.50 , what total number of apples and bananas did the customer purchase ?
let ' s start with 1 apple for $ 0.80 . let ' s subtract $ 0.80 from $ 6.50 until we get a multiple of $ 0.70 . $ 6.50 , $ 5.70 , $ 4.90 = 7 * $ 0.70 the customer purchased 7 bananas and 2 apples . the answer is b .
add(divide(subtract(6.5, multiply(0.8, const_2)), 0.7), const_2)