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 20 miles per gallon , and from town b to town c , the car averaged 24 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 ?
"step 1 ) took lcm of 20 and 24 . . came as 120 . step 2 ) 120 distance between b to c . . . do 120 / 24 hence 5 gallons used step 3 ) twice distance . . hence 120 * 2 = 240 . . . do as above . . 240 / 20 = 7 gallons used step 4 ) total gallons . . 5 + 7 = 12 gallons step ) total miles = 120 + 240 = 360 miles hence . . average of whole journey = 360 / 12 which comes to 30 answer : b"
divide(add(multiply(24, const_10), divide(multiply(24, const_10), const_2)), add(divide(multiply(24, const_10), 20), divide(divide(multiply(24, const_10), const_2), 24)))