I could use some help here:
Let $f:S\rightarrow T$ be a function. If $Y \subseteq T$, we define the inverse image of $Y$ to be $f^{−1} (Y ) = \{x ∈ S : f(x) ∈ Y \}$. Prove $f^{−1}(T − Y ) = S − f^{-1}(Y )$.
I start by supposing $x\in f^{-1}(T-Y)\subseteq S$ which gives $f(x)\in T-Y$, and it seems like $f(x)$, the set $T$, and the set $S$ can somehow be transformed into $x$, $S$, and $f^{-1}(Y)$ respectively via $f^{-1}$, but I'm not sure how to do this. Doing so would prove $f^{−1}(T − Y ) \subseteq S − f^{-1}(Y )$ and then doing the proof in reverse would show the reverse, thus proving equality.
Let $y\in f^{-1}(T-Y)$. Since $$\begin{array} 1f^{-1}(T-Y)&=\{s\in S: f(s)\in T-Y\}\\&=\{s\in S:f(s)\in T\text{ and }f(s)\notin Y\}\\&=f^{-1}(T)-f^{-1}(Y)\\&=S-f^{-1}(Y)\end{array}$$