Finding the value of y for a given x