Given:
[tex]w\left(x\right)=160-20x[/tex]Where:
w (x) = amount of water you save
x = loads of laundry
Knowing that you saved 40 gallons, then w (x) = 40.
Let's substitute w(x) by 40 and find x.
[tex]40=160-20x[/tex]Subtracting 160 from both sides of the equation:
[tex]\begin{gathered} 40-160=160-20x-160 \\ -120=160-160-20x \\ -120=0-20x \\ -120=-20x \end{gathered}[/tex]Dividing both sides by -20:
[tex]\begin{gathered} \frac{-120}{-20}=\frac{-20x}{-20} \\ 6=x \\ x=6 \end{gathered}[/tex]Answer: 6 loads of laundry.