Calculate the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) of two numbers with step-by-step solutions.
The GCD of two numbers is the largest positive integer that divides both numbers without remainder. Also known as Greatest Common Factor (GCF).
Example: GCD(12, 18) = 6
The LCM of two numbers is the smallest positive integer that is divisible by both numbers.
Example: LCM(12, 18) = 36