Consider a nondeterministic TM $M$ that takes as input another TM $M'$, a string $x$ and integer $k$. $M$ decides if there exists a string y s.t. $|y| \leq |x|^2$ and $M'(x, y)$ accepts in $k$ steps. Show that $M$ runs in exponential time.
I don't see why it is exponential time. $M$ guesses $y$ with length $|x|^2$, then verifies by running $M'(x, y)$ in $k$ steps to see if $M'$ accepts, so shouldn't it be polynomial time?