two pipes a and b can fill a tank in 12 and 24 minutes respectively . if both the pipes are used together , how long will it take to fill the tank ?
"explanation : tank can be filled by pipe a in 12 minutes and pipe b in 24 minutes . = > part filled by a in 1 minute = 1 / 12 = > part filled by b in 1 minute = 1 / 24 = > part filled by both in 1 minute = 1 / 12 + 1 / 24 = 3 / 24 = 1 / 8 time taken to fill the entire tank = 8 minutes answer b"
add(multiply(12, const_100), multiply(multiply(subtract(const_1, multiply(add(divide(const_1, 12), divide(const_1, 24)), const_2)), 12), const_60))