how do you write a linear equation that relates y to x