Explanation
Step 1
a)
[tex]40-8=40+n[/tex]add like terms
[tex]\begin{gathered} 40-8=40+n \\ 32=40+n \end{gathered}[/tex]now, subtract 40 in both sides to isolate n
[tex]\begin{gathered} 32=40+n \\ 32-40=40+n-40 \\ -8=n \\ n=-8 \end{gathered}[/tex]Step 2
b)
[tex]\begin{gathered} 25+(-100)=25-n \\ break\text{ the parenthesis by multipling +}\cdot-100 \\ 25+(-100)=25-n \\ 25-100=25-n \\ \text{add like terms} \\ -75=25-n \\ \text{subtract 25 in both sides} \\ -75-25=25-n-25 \\ -100=-n \\ \text{Multiply both sides by -1} \\ -100\cdot-1=-n\cdot-1 \\ 100=n \\ n=100 \end{gathered}[/tex]I hope this helps you