Explanation:
the lowest common multiple of 2 numbers.
I recommend prime factorization.
starting with 2 you divide each number by lowest possible prime factor as many times as possible without remainder.
then you go to the next higher prime number and keep dividing without remainder.
and the next and the next until you reach 1 as the remaining number.
and then you combine (multiply) the longest streaks per prime number.
the result : the LCM
example :
98 and 36
98
2 49 (no more 2 division, 3 does not work, 5 does not work, but 7)
7 7
7 1
36
2 18
2 9
3 3
3 1
so, the longest streaks per prime number are
2×2 = 4
3×3 = 9
7×7 = 49
and the LCM = 4×9×49 = 1764