Say I have two rational numbers $a/b$ and $c/d$ where $a,b,c,d$ are integers and $a<b$ and $c<d$, and $a$ coprime with $b$, and $c$ coprime with $d$. Assume $b,d$ are free and not necessarily coprime, and also that $d>b$ with $d$ not a power of $b$. Let $\ell = \mathrm{lcm}(b,d)$, and set $a' = a\ell/b$, $c'=c\ell/d$. Clearly $a', c'$ are not coprime with $\ell$. I want to show that there exists integers $i,j$ such that $ia' + jc'$ is coprime with $\ell$.
Example: $a,c=1$, $b=40, d=60$. So $\ell = 120$ and $a'=3,c'=2$. Then $\mathrm{gcd}(a'+c'=5,120=\ell)\neq 1$, but $(a'+2c'=7,120)=1$.
I tested it on a computer and it seems true for $a,b,c,d$ less than 100. I think I can prove it, but before I spend more time on it I thought to ask if the answer already exists, or this is an instance of a well-known number theoretic result.