Joshua invested a total of $46,000 in two accounts. The first account earned
13% after one year. However, the second account suffered a
7% loss in the same time. At the end of one year, the total amount of money gained was $1,580.
how much money at 13% and how much at 7%?