The given equation is:
$$ \color{blue}{ y = x } $$If $ \color{blue}{x = 0} $, then:
$$ y = \color{blue}{0} $$so the the line passes through origin $(0, 0)$.
If x = "something else" (sey $ \color{blue}{x = 1} $), then:
$$ y = x = 1$$so the the line passes through point $(1, 1)$.
The graph of the equation is: