The least common multiple (LCM) of two or more numbers is the smallest number that all of them divide into evenly. Its most famous job is adding fractions with different denominators — the LCM of the denominators is the smallest common denominator, keeping the numbers small and the arithmetic clean. But it shows up anywhere cycles align: two buses departing every 12 and 18 minutes coincide every 36 minutes (the LCM of 12 and 18), and two gears with 12 and 18 teeth realign every 36 tooth-steps. Anytime you need events to 'line up,' you are looking for a common multiple, and the least one is the first time they coincide.
The reliable way to find it is prime factorization: break each number into primes, take the highest power of each prime that appears in any of them, and multiply those together. For 12 (2^2 x 3) and 18 (2 x 3^2), that gives 2^2 x 3^2 = 4 x 9 = 36. A handy shortcut for two numbers is LCM(a,b) = a x b / GCF(a,b) — for 12 and 18, that is 216 / 6 = 36 — which is how this calculator works under the hood. Do not confuse the LCM with the GCF: the GCF is the largest divisor shared by the numbers (used for simplifying), while the LCM is the smallest multiple shared by them (used for combining). They are duals, linked by that very formula.