Verified Answer :

\(24=12*2=(6*2)*2=((3*2)*2)*2=3*2^3\)
\(40=4*10=(2*2)*(2*5)=2^3*5\)

Hence the greatest common factor isĀ \(2^3=8\)

gcf(24,40)=8