SOLUTION
First year
For Maria we use

we have

Interest becomes

For John we have

Hence in the First year, Marian erned $3,600 and John $3,600. so they earned same amount
Year 2
The amount for Maria in year 1 was $63,600, this becomes her principal in the second year. So we have

Interest becomes

For John, we have

Hence in the 2nd year, Marian erned $3,816 and John $3,816. so they earned same amount
Year 3
The amount for Maria in year 2 was $67,416, this becomes her principal in the second year. So we have

Interest becomes

For John we have

Hence in the 3rd year, Marian erned $4,044.96 and John $4,287.66
Hence John earns more