Problem: an item is being sold for $ 10 each . however , if a customer will “ buy at least 3 ” they have a promo discount of 30 % . also , if a customer will “ buy at least 10 ” items they will deduct an additional 8 % to their “ buy at least 3 ” promo price . if sam buys 10 pcs of that item how much should he pay ?
Rationale: "without any discount sam should pay 10 * 10 = $ 100 . now , the overall discount would be slightly less than 38 % , thus he must pay slightly more than $ 62 . answer : e ."
annotated_formula: multiply(subtract(10, divide(multiply(30, 8), const_100)), 10)