GCF is the greatest common factor of two terms
54 and 18 have common factors, let us find the factors of each one and find the common factors
18 = 1 x 18, 2 x 9, 3, x 6, then
Its factors are 1, 2, 3, 6, 9, 18
54 = 1 x 54, 2 x 27, 3 x 18, 6 x 9
Its factors are 1, 2, 3, 6, 9, 18, 27, 54
The common factors of both are
1, 2, 3, 6, 9, 18
The greatest one is 18
Both terms have variable g, then
GCF of them is 18g
The GCF of 54hg and 18g is 18g