Let $R$ and $S$ be unitary, commutative rings. Let $f:R\to S$ be a ring homomorphism. I want to show that there exists a bijection between the ideals of $\text{im}(f)$ and between the set of ideals of $R$ that contain $\ker(f)$.
First of, define $$A:=\{J \subseteq R | J \text{ is an ideal and } \ker(f) \subseteq J \}$$ $$B:=\{J \subseteq \text{im}(f) | J \text{ is an ideal} \}$$
Now I know I want to use the ring homomorphism theorem and I know it is closely related to the problem of solving Bijection between ideals of $R/I$ and ideals containing $I$ and Prove a bijection of ideals exists.. But I cannot really make sense of it.
We know $R/\ker(f) \cong \text{im}(f)$ and we know that for a surjective ring homomorphism $f$ and for all ideals $J$ both $f(J)$ and $f^{-1}(J)$ are also ideals. But I don't know how to extract the bijection from $R/\ker(f) \cong \text{im}(f)$.
How can I construct such a bijection?