I'm trying to replicate the figure below,can someone help me? the latex code is below
Let $A$ and $B$ be rings, where $B$ is an $A$-module.
If
\[
(a\cdot x)\underset{B}{\cdot}(b\cdot y)=(a\underset{A}{\cdot} b)\cdot(x\underset{B}{\cdot} y),\, \forall a,b\in A\textrm{ and }x,y\in B
\]
then $\phi:A\rightarrow B$ is a ring homomorphism and the structure of $B$ as $A$-module via $\phi$ is the original structure of $B$ as $A$-module.
if I use underset it looks awful.
[]