If you just want normal spaces you can put them inside the text braces (multiple spaces compile to single spaces):
\text {The solution to }\sqrt{x} = 5 \text { is } x = 25
In a LaTeX system though you don't need the text{}:
The solution to $\sqrt{x} = 5$ is $x = 25$
will do (the "$" delimiters enclose inline maths mode).
CB