.
The logic is broken in your solution.
This phrase is nonsense
"Let x = amount of money that should be invested in each account".
x CAN NOT be an amount invested in each account.
It only can be an amount invested in some ONE of the two accounts.
So, your solution must be re-written accordingly from the very beginning.
Also, on the way, percents are incorrectly connected with the amounts.
Be more attentive and try to keep right logic.
//////////////////
If you want to see many other similar solved problem (as your TEMPLATES), you can find them in the lesson
- Using systems of equations to solve problems on investment
in this site.
You will find there different approaches (using one equation or a system of two equations in two unknowns), as well as
different methods of solution to the equations (Substitution, Elimination).
Also, you have this free of charge online textbook in ALGEBRA-I in this site
- ALGEBRA-I - YOUR ONLINE TEXTBOOK.
The referred lesson is 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.