Too long for a comment, and there's already a good short answer.
This interesting question is an instance of a common misunderstanding that most students eventually resolve intuitively. An "$x$" sometimes means a particular number, usually one you must find, sometimes a typical number (or element of the domain of a function). The difference is rarely mentioned explicitly.
The $x$ in $y = mx +b$ is the second kind. What's really being specified is the function $f$ defined by the rule
$$
f(\text{anything}) = m \times \text{ anything} + b
$$
- no need to mention $x$ or $y$. This is often written as
the function $f(x) = mx+b$
even though $f(x)$ isn't the function, $f$ is.
Should we ban that abuse of the language? That's a hard question to answer. Most of the time students can understand from the context what's going on. In those cases the extra cumbersome prose would be more confusing than helpful. But some of the time the abuse leads to confusion.