Solving equations in simplest radical form