HCF = 1 x 2 = 2
Find prime factors of number 10
10 = 1 x 2 x 5
Find prime factors of number 8
8 = 1 x 2 x 2 x 2
Find common factors and multiply them to get HCF.