Let x be the interest on the first bank with 20% interest and y be the amount of the interest on the onilne bank with 4.5% interest.
Thus, the total amount on the banks can be represented as follows:
[tex]x+y=42000[/tex]On the other hand, the total interest can also be represented as follows:
[tex]0.2x+0.045y=2510[/tex]Using the first equation, solve for the value of x.
[tex]x=42000-y[/tex]Substitute the obtained value of x into the second equation.
[tex]0.2(42000-y)+0.045y=2510[/tex]Simplify the left side of the equation. Distribute 0.2 to 42000-y and then combine like terms.
[tex]\begin{gathered} 8400-0.2y+0.045y=2510 \\ 8400-0.155y=2510 \end{gathered}[/tex]Add 0.155y and subtract 2510 on both sides of the equation.
[tex]\begin{gathered} 8400-2510=0.155y \\ 0.155y=8400-2510 \\ 0.155y=5890 \end{gathered}[/tex]Divide both sides of the equation by 0.155.
[tex]\begin{gathered} \frac{0.155y}{0.155}=\frac{5890}{0.155} \\ y=38000 \end{gathered}[/tex]To solve for x, substitute the obtained value of x into the first obtained equation.
[tex]\begin{gathered} x+y=42000 \\ x+38000=42000 \end{gathered}[/tex]Subtract 38000 from both sides of the equation.
[tex]\begin{gathered} x=42000-38000 \\ x=4000 \end{gathered}[/tex]Thus, she put $4000 on the credit card which charges 20% interest and put $38000 on the credit card which charges 4.5%.