Assume $f:\ X→Y$ and $A⊆X\ ,\ B⊆Y$ then prove:
$$f\left(A∩\ f^{-1}\left(B\right)\right)=f\left(A\right)\ ∩\ B$$
$$f\left(\ f^{-1}\left(B\right)\right)=f\left(X\right)\ ∩\ B$$
For the first one assume $y\ ∈\ f\left(A∩\ f^{-1}\left(B\right)\right)$, iff there exist $x\ ∈\left(A∩\ f^{-1}\left(B\right)\right)$ such that $f(x)=y$ , in other words there exist $x$$\ ∈\ A$ such that $f(x)=y$ and there exist $x$$\ ∈f^{-1}\left(B\right)$ such that $f(x)=y$, implies $y\ ∈\ f\left(A\right)\ \text{and}\ f\left(x\right)=y\ ∈\ B$
For the other one let $y\ ∈\ f\left(\ f^{-1}\left(B\right)\right)$ this holds iff $\ ∃\ x\ ∈\ f^{-1}\left(B\right)$ such that $f\left(x\right)=y$ or equivalently $\ ∃f\left(x\right)\ ∈B$ such that $\ f\left(x\right)=y$ hence $\ y∈\ \ B$
$y$ in $f(A \cap f^{-1}(B))$ iff
exists $x$ in $A \cap f^{-1}(B))$ with $y = f(x)$ iff
exists x in A with $(f(x)$ in $B$ and $y = f(x))$ iff
$y$ in $f(A)$ and $y$ in $B$.
The second equation is an immediate corollary
of the first equation by setting $A$ to $X$.