LCM( 18, 21 ) = 126
The formula for finding LCM is
$$ \text{LCM} (a, b) = \frac{ a \cdot b }{ \text{GCD}(a,b)} $$In this example we have: a = 18, b = 21 and GCD(18, 21) = 3.
$$ \text{LCM} (18, 21) = \frac{ 18 \cdot 21 }{ \text{GCD}(18,21)} = \frac{ 378 }{ 3 } = 126 $$