-5x-16=8
-5x=24
[tex]\frac{x}{-5} = \frac{24}{-5}[/tex]
[tex]-x=\frac{24}{-5}[/tex]
[tex]x=\frac{24}{5}[/tex]
above is how to correctly solve the equation
The error is in step 3.
Step 3 as written: [tex]\frac{-5x}{5} = \frac{24}{5}[/tex]
This is incorrect because you are removing the 5 from the -5x so it wouldn't be in the numerator.
Hope this helps