peter invests a sum of money and gets back an amount of $ 815 in 3 years . david invests an equal amount of money and gets an amount of $ 870 in 4 years . if both amounts were invested at the same rate ( simple interest ) what was the sum of money invested ?
"since both peter and david invested the same amount of money at the same rate , they would earn same interest per year . david invested for one year more than peter and hence he got interest amount for one more year . interest earned per year = amount received by david - amount received by peter = 870 - 815 = 55 interest earned for 3 years = 55 * 3 = 165 amount invested = 815 - 165 = 650 answer : b"
subtract(815, multiply(divide(subtract(870, 815), subtract(divide(4, const_100), divide(3, const_100))), divide(3, const_100)))