ravi invested his savings in two investment funds. the amount he invested in fund a was less than the amount he invested in fund b. fund a returned a profit and fund b returned a profit. how much did he invest in fund b, if the total profit from the two funds together was ?