bob invested $ 2000 in fund a and $ 1000 in fund b . over the next two years , the money in fund a earned a total interest of 12 percent for the two years combined and the money in fund b earned 30 percent annual interest compounded annually . two years after bob made these investments . bob ' s investment in fund a was worth how much more than his investment in fund b ?
bob earned 2000 * ( 1 + 0.12 ) in total by fund a and earned 1000 * ( 1 + 0.3 ) ^ 2 in total by fund b . so 2000 * ( 1.12 ) - 1000 * ( 1.69 ) = 550 . the answer is , therefore , ( b ) .
subtract(multiply(2000, add(const_1, divide(12, const_100))), multiply(1000, power(add(const_1, divide(30, const_100)), const_2)))