As a fraction, you can write 24xy ÷ 6y as
[tex] \frac{24xy}{6y} [/tex]
We can cancel the y's here, leaving us with [tex] \frac{24x}{6} [/tex].
6 goes 24 4 times, so we can reduce our fraction down to
[tex] \frac{24x}{6} =4x[/tex]
Plugging in -2 for x, we get 4(-2) = -8