Let $A \subset B$ be commutative integral domains with $\operatorname{Quot}(A) = \operatorname{Quot}(B).$
Now consider the multiplicatively closed subset $S = \{x\in A\setminus\{0\}: x^{-1}\in B\}$.
I want to show that $S^{-1}A = B$. I would appreciate any help.