Here, we want to know the amount invested in each of the two accounts
Let the amount invested in the first account be $x while the amount invested in the second account be $y
From the question;
Now let us work with the interests;
From the first equation, we can have;
Substitute this into the equation of the interest;
From above,