Let E and F be two sets and $f: E \to F $ be a function, and $X, Y \subset F$.
Prove that $X \subset Y \implies f^{-1}(X) \subset f^{-1}(Y)$
My answer:
Let $y \in X$, then $f^{-1}(y) \in f^{-1}(X)$.
Since $X \subset Y$, then $y \in Y$.
If $y \in Y$, then $f^{-1}(y) \in f^{-1}(Y)$.
So, $f^{-1}(y) \in f^{-1}(X)$ and $f^{-1}(y) \in f^{-1}(Y)$, then $f^{-1}(X) \subset f^{-1}(Y)$.
Is this proof ok?
The proof looks pretty good! There are some things that I can say though.
For starters, we want to show the implication $x\in f^{-1}(X)\implies x\in f^{-1}(Y)$. Because of this, we don't really need to look for $y\in Y$. You made this claim, and then the corresponding claims about the preimages with a subtle implication to if $y\in f^{-1}(X)\cap f^{-1}(Y)$ then $f^{-1}(X)\subset f^{-1}(Y)$. But this actually doesn't follow. See if you can revamp it.
If you'd like, I've rewritten it below but, I would only look at this after trying again first.
Suppose $X\subset Y$ (both subsets of the codomain, $F$), and take an element $x\in f^{-1}(X)$. Then $f(x)\in X$ by the definition of preimage. Since $X\subset Y$, we have $f(x)\in Y$. Therefore, if $x\in f^{-1}(X)$ then $x\in f^{-1}(Y)$ showing $f^{-1}(X)\subseteq f^{-1}(Y)$.