The graph of a quadratic function passes through the points with coordinates (-1,-2), (1,0), (2,7), and (3,y). Find y.