Let $A,B$ be commutative rings, and let $\phi: A \to B$ be a ring homomorphism where $B$ has finitely many elements. Prove that if $I \subset B$ is a maximal ideal then $\phi^{-1}(I)$ is also a maximal ideal in $A$
I've tried to construct a proof by contradiction but with no success, im not looking for answers but rather hints.
Hint: every subring of a finite field is also a finite field.
Same hint, more algebraic: if $x\notin \phi^{-1} (I)$, then multiplication by $x$ gives an injective map $A/\phi^{-1}(I) \to A/\phi^{-1}(I)$.