First, list the prime factors of each number. Now, find the factors both numbers have in common and multiply them together. For example, the prime factors of 12 are 2, 2, and 3. The prime factors of 30 are 2, 3, and 5. There's one 2 and one 3 in common, so the greatest common factor is 6.