the assumption being that "x" is a plain variable whilst "y" is a function, that matters because the chain rule would be needed for a function, not so for a plain variable.
now, we know that y(5) = -23, which is another way of saying that when x = 5, y = -23, but we already knew that, we can get that by simply plugging it into the equation hmmm y'(5), well