How do you know which variable is the "x" and the "y"?
If you are talking about determining ordered pairs to be graphed, the variable that is under your control is the x variable. It is called the independent variable. The variable that results from the independent variable is the y variable. It is called the dependent variable because its value is dependent on the independent variable.
Take for example the equation
The same would be true if the equation was