No, the problem is not asking for you to find a function y=f(x).
The volume of earth removed is the integral of the area of the vertical cross section times the width dx of that vertical cross section. The area will be a function of y, so you'll have:
You use the table of y as a function of x to evaluate the integral numerically.
Post again in this thread if you're still having trouble.