How do you find the slope of y=2?

Also, from the definition of slope $m$ you have:
$m - \frac{\Delta y}{\Delta x}$
but for every choice of two $x$ values you get always $2$ as $y$ value so that $\Delta y = 2 - 2 = 0$.