A $5000 principal is invested into two Accounts One earning 1% and another earring 6% interest if the total interest for the year is 170 then how much is invested in each account