Factorise both; multiply all primes to highest power. LCM(12,18)=22⋅32=36(12,18)=2^2\cdot 3^2=36(12,18)=22⋅32=36.