Katy invests a total of $30,500 in two accounts. The first account earned a rate of return of 15% (after a year). However, the second account suffered a 13% loss in the same time period. At the end of one year, the total amount of money gained was $-745.00. How much was invested into each account?