Solving by taking the square root