Travis has a total of $6,000 invested in two accounts. The total amount of interest he earns from the accounts in the first year is $420. If one account pays 6% per year and the other pays 9% per year, how much did he invest in each account?