Find the prime factors of both numbers 40 2*2*2*5 20 2*2*5 2*2*5 GCF=product of the shared factors=2*2*5=20