An investor with 10050 euros puts part of his capital in one bank at 4 % interest and the rest in another bank at 8 %. If the second investment earns him 198 euros more interest per year how much has he invested with each bank?

He has invested €
at 4% in the first bank and
at 8% in the second bank