If $A$ is a semilocal ring and $f:A\rightarrow B$ is a surjective homomorphism, then $f(\operatorname{rad}A)=\operatorname{rad}B$.
I know that if $A$ is a semilocal ring and if $I_{1},\dots, I_{n}$ are all of its maximal ideals, then $\operatorname{rad}A=I_{1}\cdots I_{n}=I_{1}\cap\cdots\cap I_{n}$. Let $y\in\operatorname{rad}B$, then there is $x\in A$ such that $f(x)=y$. I would like to show that $x\in\operatorname{rad}A$.
Any hint?