solving equations with square roots