The Euclidean Algorithm is a generalized algorithm for calculating the GCD of 2 or more numbers.
For Example: Lets say, A = 138, B = 78
Therefore GCD = 6