Ali invested his saving in two investment funds. The amount he invested in Fund A was 3 times as much as the amount he invested in Fund b. Find A returned a 4% profit and fund b returned a 8% profit. How much did he invest in Fund B, if the total profit from the two funds together was $2400