Answer:
The amount invested in the account that paid 8.2% is $4,000 and the amount invested in the account that paid 21.5% is $2,000
Explanation:
Let
2x -----> the amount invested in the account that paid 8.2%
x -----> the amount invested in the account that paid 21.5%
in this problem we have

we know that

Solve for x



so

therefore
The amount invested in the account that paid 8.2% is $4,000 and the amount invested in the account that paid 21.5% is $2,000