Trey Invested his savings in two Investment funds. The $12,000 that he invested in Fund A returned a 1% profit. The amount that he invested in Fund B returned a 6% profit. How much did he invest in Fund B, if both funds together returned a 3% profit?