Last year, Ivan had $30,000 to invest. He invested some of it in an account that paid 6% simple interest per year, and he invested the rest in an account that paid 10% simple interest per year. After one year, he received a total of $2560 in interest. How much did he invest in each account?

First account : ?
Second account : ?