Madison deposited a total of $5,000 between two saving accounts bearing simple interest. One of the accounts has an interest rate of 4% while the other rate is 5%. If the total interest earned after one year is $220, find the amount deposited into each of the accounts.