Kala invested her savings in two investment funds. The amount she invested in Fund A was 3 times as much as the amount she invested in Fund B. Fund A returned a 8% profit and Fund B returned a 7% profit. How much did she invest in Fund B, if the total profit from the two funds together was $2790?

If x in B, then 3x in A. So,

0.08*3x + 0.07 x = 2790