Mental Model
GCD is the biggest number that divides two numbers without leftovers. LCM is the smallest number both can fit into evenly. Euclid's method finds GCD by repeatedly subtracting or dividing until one number becomes zero.
Analogy: Imagine two ropes of different lengths. To find the longest piece you can cut both ropes into equal pieces without leftovers, you keep cutting the longer rope by the length of the shorter until one rope is fully cut. That length is the GCD. Then, the LCM is like finding the smallest length where both ropes can be joined end to end evenly.
a = 48 b = 18 GCD process: 48 -> 18 -> 12 -> 6 -> 0 LCM = (a * b) / GCD 48 -> 18 ā ā