If the least common multiple of $A$ and $B$ is $1575$, and the ratio of $A$ to $B$ is $3:7$, then what is their greatest common divisor?

Let's think step by step and output the final answer within \boxed{}.
user