The GCD of given numbers is 2.
Step 1 : Find prime factorization of each number.
$$\begin{aligned}638 =& 2\cdot11\cdot29\\[8pt]5002 =& 2\cdot41\cdot61\\[8pt]\end{aligned}$$(view steps on how to factor 638 and 5002. )
Step 2 : Put a box around factors that are common for all numbers:
$$\begin{aligned}638 =& \color{blue}{\boxed{2}}\cdot11\cdot29\\[8pt]5002 =& \color{blue}{\boxed{2}}\cdot41\cdot61\\[8pt]\end{aligned}$$Step 3 : Multiply the boxed numbers together:
$$ GCD = 2 $$This solution can be visualized using a Venn diagram.
The GCD equals the product of the numbers at the intersection.