The code works fine and displays the equations I want but it says that I'm missing "{" and "}" in the \end{align*}
line. And I can not find any solutions to it.
\begin{align*}
x &= \sqrt{5}^\sqrt{2}\\
&\text{and}\\
y &= \sqrt{2}\\
x ^ y &\Rightarrow (\sqrt{5}^\sqrt{2}) ^ \sqrt{2}
\end{align*}