The exercise is:
Given that $ \phi : R \to S $ is an onto ring homomorphism, let $ B $ be a maximal ideal of $ S $. Prove that $ A = \phi^{-1} (B) $ is a maximal ideal of $R$.
Ok, I previously proved that $A$ is an ideal of $R$, now to prove that it is maximal:
Let $I$ be an ideal of $R$ such that $ A \subset I$. From this follows that $B \subset \phi (I)$, and since $B$ is maximal $ \phi (I) = S$, and $I = R$, which means that $A$ is maximal.
Is it correct? Because I'm not too sure.