Bob invested his savings in two investment funds. The amount he invested in Fund A was 3 times as much as the amount he invested in Fund B. Fund A returned a 5% profit and Fund B returned a 7% profit. How much did he invest in Fund B, if the total profit from the two funds together was $2200?