I have problem to understand and solve the exercise 1.2.14 on Qing Liu's book "Algebraic Geometry and Arithmetic Curves". It goes as follows:
Let $A\to B$ be a ring homomorphism, and let $J$ be an ideal of $B$ such that $B/J$ is flat over $A$. Show that for any ideal $I$ of $A$, we have that $(IB)\cap J=IJ$ (tensor the injection $I\to A$ by $B/J$).
Where do we need the homomorphism $A\to B$ as Liu does not use it explicitly in the problem? Could someone elaborate why tensoring the injection helps to prove the theorem?