Finding the value of y for a given value of x