Finding the positive value of x