Let's substitute 0 for x and evaluate.
The value of y is -2 for x=0.
Similarly, we substitute -2 for x and evaluate.
Thus, y=-8 when x=-2.
To solve y=7, we substitute 7 for y. This gives an equation with one unknown, x.
The solution to the equation is x=3.