The factors of each term in the expression 8x + 12xy are shown below.

8x: 1, 2, 4, 8, x
12xy: 1, 2, 3, 4, 6, 12, x, y

What is the greatest common factor of 8x and 12xy?