what is the answer of this problem ? help me to find

Given:
Total invested amount = $9000
One account = 5%
Another account = 6%
Find-:
Invested amount of each equation
Explanation-:
Let in 5% account invested amount is x
then amount in 6% account is (9000-x)
Then,
[tex]5\%\text{ of }x+6\%\text{ of }(9000-x)=510[/tex]Then the value of "x" is:
[tex]\begin{gathered} \frac{5}{100}\times x+\frac{6}{100}\times(9000-x)=510 \\ \\ 0.05x+0.06(9000-x)=510 \\ \\ 0.05x+(0.06\times9000)-0.06x=510 \end{gathered}[/tex]The "x" is:
[tex]\begin{gathered} 0.05x-0.06x+540=510 \\ \\ -0.01x=510-540 \\ \\ -0.01x=-30 \\ \\ x=\frac{-30}{-0.01} \\ \\ x=3000 \end{gathered}[/tex]The value of x is 3000 the mean amount in 5% invested amount is 3000.
6% invested amount is:
[tex]\begin{gathered} =9000-3000 \\ \\ =6000 \end{gathered}[/tex]So each account invested amount is:
[tex]\begin{gathered} 5\%\rightarrow3000 \\ \\ 6\%\rightarrow6000 \end{gathered}[/tex]