factors of 18=1,2,3, 4,6 and 18 factors of 42- 1, 2, 3, 6, 7, 14, 21, 42 the greatest common factor or GCF is 6

Your answer would be 6 Hope it helps:)