Answer:$1500was invested in the account that gained 15% and $15500 was invested in the account that lost 5%.