The GCD of given numbers is 2.
Step 1 : Place the numbers inside division bar:.
| 40 | 20 | 30 |
Step 2 : Divide numbers by 2.
| 2 | 40 | 20 | 30 |
| 20 | 10 | 15 |
Step 3 : Number 20, 10 and 15, cannot be divided any more. The GCD is:
$$ GCD = 2 $$This solution can be visualized using a Venn diagram.
The GCD equals the product of the numbers at the intersection.