For part b, my first approach would be to estimate the linear relationship y = a + b*x using least squares and show that b is not statistically significantly different from zero. But "y is not a function of x" is a very general statement; you may have to iterate with polynomial functions (of x), until you run out of data points.