The equation y=3x−7 relates the variables x and y. Which of the following correctly expresses x in terms of y?
x=3y+7
x=3y−7
x=3y+7
x=3y−7