You solve equations step by step. So, if you start with $x=2a^2$, and you want to get to an expression for $a$, you start by "isolating" $a$ to one side. In this case, it's best to divide the equation by $2$ to get
$$a^2=\frac x2.$$
Once here, you need to remember that $a^2=b$ if and only if $a=\pm\sqrt b$, and you are done.
The important question here is "How do I remember the important things", and there are several things that help with that. The most important things are:
- Practice
- A little more practice
- A touch of practice to top it off.
What I want to point out is that it takes hard work to learn math. It's worth it, of course, but there's no other way. And there's no such thing as "bad at math", there's just something like "never got around to actually practice math". I promise you that if you work on calculus problems for 2 hours each day, you will see a huge difference in a month or two.
Try to be systematic about these things. This means, grab a textbook, and work through it cover to cover. Read a chapter, then solve the exercises before moving on.
Edit:
Other users suggested other important points in learning:
- Making sure what you learn is true - this comes with practice (non-true things will be useless to you) and from using common textbooks.
- Remember arguments and ideas instead of results or formulas. - again, practice helps here, because if you only remember results and formulas, you won't be able to solve harder practice problems.