When dividing an integer $a$ by 3 and 7 both results in an integer answer, I intuitively feel that $a/A$ with $A=21$ would also be integer, which seems related to the fact that $3\times7=21$.
However, for an integer $b$ that divided by 4 and 6 would result in an integer answer it seems to be that $b/A$ with $A=12$ is integer as well.
My question is: is there a way to determine $A$ based on a multiplication of the two known integer divisions?
From the two examples that I gave I can think of this $A=\frac{x\times y}{gcd(x,y)}$, where $x$ and $y$ are the two numbers that result in integer answers. But I don't have a solid reason to believe this is generally true.