.
Your equation is
0.08*(100000-A) - 2*0.05*A = 800
where A is amount invested in Bank A at 5%.
Simplify and solve for A.
To see how to solve many other similar problems, look into the lesson
- Using systems of equations to solve problems on investment
in this site.
Also, you have this free of charge online textbook in ALGEBRA-I in this site
- ALGEBRA-I - YOUR ONLINE TEXTBOOK.
The referred lessons are the part of this online textbook under the topic "Systems of two linear equations in two unknowns".
Save the link to this online textbook together with its description
Free of charge online textbook in ALGEBRA-I
https://www.algebra.com/algebra/homework/quadratic/lessons/ALGEBRA-I-YOUR-ONLINE-TEXTBOOK.lesson
to your archive and use it when it is needed.