y = x2+6x -2?

You cannot solve for both y and x with one equation. You could make a graph of that function (plot y vs x) . You will end up with a parabola.