Katie invests $5,000 in an account earning 4% interest, compounded annually for 5 years. Two years after Katie's initial investment, Emily invests $10,000 in an account earning 4% interest, compounded annually for 3 years. Given that no additional deposits are made, compare the amount of interest earned after the interest period ends for each account. (round to the nearest dollar)