Explanation:
[tex]v = \sqrt{2ax}[/tex]
Take the square of both sides:
[tex]v^2 = \left(\sqrt{2ax}\right)^2 = 2ax[/tex]
Divide both sides by 2a and you will get
[tex]x = \dfrac{v^2}{2a}[/tex]