To find the greatest common factor, we have to decompose the given numbers in prime factors until they still have common factors, this way:
At this point, 6 and 7 don't have more common factors, it means that the answer will be the product of the prime factors obtained 3*3=9.
The greatest common factor is B. 9.