We have the function:

When we have the value of x, and we want to find the value of y, we replace x in the equation and calculate.
For x=-6, we have:

The value of y for x=-6 is y=3.
When we know y, and we want to know the value of x, we replace y and calculate.
For y=5, we have:

For y=5, the value of x is x=3.
We repeat this for the last two cases:
x=15, the value of y is y=17

y=15, the value of x is x=-12
