27 prime factors: 9*3 prime factors of 9: 3*3
117 prime factors: 39*3 prime factors of 39: 13*3
that would make 3 the greatest common factor. for the other ones break down the numbers into the smallest amount and see which largest factor both numbers have in common.
\