In the world of natural numbers,
a RED and a GREEN guy start from 0 and walk down the numberline. If the RED guy moves in steps of size r and the GREEN guy moves in steps of size g, the spots on the numberline where both will step are k * lcm(r, g) where k is a natural number.
How to find such spots in case when GREEN guy starts with an advantage of a?

Let $d = \gcd(Green, Red)$, everystep Green takes will be multiple of $d$ offset by advantage $a$ and every step Red takes will be a multiple of $d$. So $a$ has to be a multiple of $d$ if they are ever to be in synch.
By Euclid's Lemma there exists integers $M,N$ so that $M*Red - N*Green = a$. Find those and have Red and Green take those steps to get a number they will be synched at. Then all multiples of the LCM from there will have them in synch.
===
Example: if G = 15 and R = 9 and a = 3. Then $\gcd(R,G) = 3$ and $2R - G = a$. So R goes forward from zero two steps to 18. and G goes forward from 3 one step to 3+15 = 18. They will be in synch. LCM$(15,9)=45$ so they will be in synch $18 \pm 45k$
or less trivial G = 38 and R = 30 and a=6. $\gcd(G,R) = 2$ and so $38 - 30 = 8$ and $3*8 + 6 = 30$ so $3(38-30)+6 = 30$ so $6= 4*30 - 3*38$. So red goes forward four steps. $0 + 4*30 = 120$ and green goes forward three. $6 + 3*38=6 + 114=120$. LCM$(38,30) = 19*2*15=570$. Then will be in synch $120 \pm 570k$.
Example of failure. Green = 12 and Red = 9 and a = 5. $\gcd(12,9) =3$ and $3\not | 5$. Green will always be on $5 + 12k \equiv 2 \mod 3$ and red will always be on $3j \equiv 0 \mod 3$. They will never synch.