Problem: a certain car traveled twice as many miles from town a to town b as it did from town b to town c . from town a to town b , the car averaged 10 miles per gallon , and from town b to town c , the car averaged 12 miles per gallon . what is the average miles per gallon that the car achieved on its trip from town a through town b to town c ?
Rationale: "step 1 ) took lcm of 10 and 12 . . came as 30 . just multiplied by 10 . . . ( to make easy calculation ) step 2 ) 300 distance between b to c . . . do 300 / 12 hence 25 gallons used step 3 ) twice distance . . hence 300 * 2 = 600 . . . do as above . . 600 / 10 = 60 gallons used step 4 ) total gallons . . 25 + 60 = 85 gallons step ) total miles = 300 + 600 = 900 miles hence . . average of whole journey = 900 / 85 which comes to 10.6 answer : d"
annotated_formula: divide(add(multiply(12, const_10), divide(multiply(12, const_10), const_2)), add(divide(multiply(12, const_10), 10), divide(divide(multiply(12, const_10), const_2), 12)))