Algebraic $K_0$ group for an algebra $A$ may be defined in terms of stable isomorphism classes of idempotents in $M_n(A)$ or equivalently in terms of isomorphism clasess of finitely generated projective modules. If $f:A \to B$ is a morphism of algebras and $e=(e_{ij})_{i,j}$ is an idempotent in $M_n(A)$ then we define $f_*([e]):=[(f(e_{ij}))_{i,j}]$. In the "module picture" given $P$-projective finitely generated $A$ module we form $f_*([P]):=[P \otimes_A B]$ where the right $B$-module structure on $P \otimes_A B$ is via $(x \otimes b)b'=x \otimes bb'$. You can wonder where the map $f$ is involved: well, it is in the relation $xa \otimes b=x \otimes f(a)b$.
Now one can show that any finitely generated projective $A$ module is of the form $eM_n(A)$ for some idempotent $e=(e_{ij})_{i,j}$. So my question is
Why these two description are equivalent, i.e. why is $(f(e_{ij}))_{i,j}M_n(B) \cong P \otimes_A B$ where $P=eM_n(A)$ is finitely generated projective $A$ module?
Please note that I posted a similar question on stck exchange however I didn;t received a satisfactory answer.